Rest Api for journal relations, journals and parent id
Added by Sukrit Jain over 3 years ago
Hi,
I am trying to update relations using postman, and is getting 200 OK message but the relations are not being updated in the User interface and have attached "update relation" the body used in the postman Put command.
I want to update the existing issue with parent id, and adding journal using rest api?
While creating an issue can we add a journal using rest api?
Please can you let me know how to do that?
Thanks
Sukrit
update relations.txt (741 Bytes) update relations.txt |
Replies (3)
RE: Rest Api for journal relations, journals and parent id - Added by Lorenzo Meneghetti over 3 years ago
Hello,
Sukrit Jain wrote:
Hi,
I am trying to update relations using postman, and is getting 200 OK message but the relations are not being updated in the User interface and have attached "update relation" the body used in the postman Put command.
if you read the wiki about relations you wil fin by yourself that the metod is POST and the xml body is quite different
I want to update the existing issue with parent id, and adding journal using rest api?
you can update parent_id and this will throw a journal detail for this edit (see journal as an internal model managed by issue model)
While creating an issue can we add a journal using rest api?
yes if you mean insert a note you can with:
https://www.redmine.org/projects/redmine/wiki/Rest_IssueJournals
Thanks
Lorenzo
RE: Rest Api for journal relations, journals and parent id - Added by Sukrit Jain over 3 years ago
Lorenzo Meneghetti wrote:
Hello,
Sukrit Jain wrote:
Hi,
I am trying to update relations using postman, and is getting 200 OK message but the relations are not being updated in the User interface and have attached "update relation" the body used in the postman Put command.
if you read the wiki about relations you wil fin by yourself that the metod is POST and the xml body is quite different
I want to update the existing issue with parent id, and adding journal using rest api?
you can update parent_id and this will throw a journal detail for this edit (see journal as an internal model managed by issue model)
While creating an issue can we add a journal using rest api?
yes if you mean insert a note you can with:
https://www.redmine.org/projects/redmine/wiki/Rest_IssueJournalsThanks
Lorenzo
Hi Lorenzo,
Thanks for your reply.
I want to update the the relations not create a new relation, so I don't want to use POST, instead I want to use PUT. So, how can I use PUT in relations?
RE: Rest Api for journal relations, journals and parent id - Added by Lorenzo Meneghetti over 3 years ago
Sukrit Jain wrote:
Lorenzo Meneghetti wrote:
Hello,
[CUT]
Hi Lorenzo,
Thanks for your reply.
I want to update the the relations not create a new relation, so I don't want to use POST, instead I want to use PUT. So, how can I use PUT in relations?
Hello, you have to delete and create a new one. Updating a releation is not supported neither in Redmine Gui.
Thanks
Lorenzo