It's all about the answers!

Ask a question

upadating a workitem using oslc 2.0 in json format


Akshata Kulkarni (37219) | asked Apr 17 '15, 11:37 p.m.
how to update description field of a workitem using oslc 2.0 in json format?

Accepted answer


permanent link
Donald Nong (14.5k414) | answered Apr 19 '15, 9:07 p.m.
It is not much different from using the RDF/XML format. Basically you just follow the below steps.
1. Do a GET to retrieve the current JSON representation of the work item.
2. Locate the "Description" field by the keyword ""dcterms:description".
3. Change the "Description" content as desired.
4. Do a PUT with the changed JSON representation as a the payload and ensure that HTTP header "Content-Type: application/json" is added for the request.
5. If successful, you should get a HTTP 200 OK message.
Akshata Kulkarni selected this answer as the correct answer

Your answer


Register or to post your answer.