It's all about the answers!

Ask a question

RQM : Request body to update an attribute of a test artifact using REST API


Ajith O M (46734) | asked Jun 25 '19, 5:32 a.m.

 Dear Team,

I have this API URLwhich I will be using as POST request to update an attribute of the test artifact
For example, I would like to update the description attribute in the test plan.
I would like to know the json request body required to hit the post request and update.

2 answers



permanent link
Ralph Schoon (63.6k33646) | answered Jun 26 '19, 6:58 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

permanent link
Marco Lezajic (11) | answered Jun 26 '19, 8:15 a.m.

Hi Ralph,

is the oslc/lyo framework you mention above capable of updating several attributes of a work item at the same time ?
In my case i have to update the state of a work item and provide a comment (if the comment is not there i get a http 403). I have tried to achieve this with 'regular' http calls but failed to to get it done


Comments
Ralph Schoon commented Jun 26 '19, 8:57 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

I believe that is the case. Basically you use a representation where you change as many values as you want. Then you Put/Post whatever that content. And all changed values should be changed. Note: you have to response with all the changed and unchanged data. Omitting data is a delete as far as I can tell.


I provided some information how Lyo works here: https://jazz.net/library/article/92596 . I am also only a Lyo beginner. 

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.