RQM : Request body to update an attribute of a test artifact using REST API
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
Ralph Schoon (63.6k●3●36●46)
| answered Jun 26 '19, 6:58 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER https://github.com/OSLC/lyo-samples/blob/master/oslc4j-client-samples/src/main/java/org/eclipse/lyo/oslc4j/client/samples/ETMSample.java is an example that accesses QM, the OSLC API and does operations including updates. |
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 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
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.