Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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.

0 votes



2 answers

Permanent link

 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.

0 votes


Permanent link

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

0 votes

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

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,938
× 479
× 3

Question asked: Jun 25 '19, 5:32 a.m.

Question was seen: 2,409 times

Last updated: Jun 26 '19, 8:57 a.m.

Confirmation Cancel Confirm