It's all about the answers!

Ask a question

How to modify Artifact Categories and Custom Attributes of RQM project area using OSLC OR REST API

ast java (4512048) | asked Apr 04 '16, 2:20 p.m.
edited Apr 05 '16, 10:07 a.m.
The RQM REST API does not support OSLC API to perform CRUD operation. (

Is there any other way that we can perform CRUD operation on project area properties in RQM like Artifact Categories?

Accepted answer

permanent link
Donald Nong (14.5k514) | answered Apr 04 '16, 9:10 p.m.
Not quite sure why you said RQM REST API does not support CRUD operations. It's clearly shown in the table that you quoted that such operations are supported. Respectively, you would use POST, GET, PUT and DELETE operations. Or do I miss something?
ast java selected this answer as the correct answer

ast java commented Apr 05 '16, 6:44 a.m.

Yes. You are correct but we can perform CRUD Operations with respect to a Test Plan, Tesct Case, etc,. what i am asking is there any API which gets the overall categories of a project area.

ast java commented Apr 05 '16, 10:06 a.m.

i am able to get all categories of a project area using Rest API url -GET Method


And my question here is whether i am able to update / Create category value using PUT and POST methods of rest api?

Donald Nong commented Apr 06 '16, 12:46 a.m.

Of course you can. You do it in a way similar to what you would for Test Plan, Test Case and etc.

ast java commented Apr 07 '16, 9:23 a.m.

I tried updating category value using PUT method. I have changed the category value in updated xml (Response which i got using above mentioned url was updated with new category title) and pasted in request body and tried to update (PUT) i am getting 400 error.
i saw many links which updates a test plan or test case category but here i need to change the project property - Artefact Categories on whole.

Please help me to get this category value updated using rest API.

Donald Nong commented Apr 08 '16, 1:52 a.m.

Without the details, it's very hard to tell what went wrong with your testing. Can you please elaborate?

ast java commented Apr 11 '16, 1:14 a.m.

Yes Donald, Sure i will explain in detail
XML Response:
(pasted only one entry)
 <entry xmlns="">
        <title type="text">Testing Category</title>
        <summary type="text">
        <link href="https://localhost:9443/qm/service/" rel="alternate" type="application/xml" title=""/>

ast java commented Apr 11 '16, 1:14 a.m.

I used GET method to fetch all categories and now i tried to update one category naming Testing Category to Testing Category Modified so i changed the title value as   <title type="text">Testing Category Modified</title> and pasted in request body then i performed PUT Method to update. when i send request i got 400 error.

Donald Nong commented Apr 11 '16, 3:09 a.m.

ast java commented Apr 11 '16, 8:12 a.m.

Yes i tried PUT against the above URL but still 400 Bad request error.

at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleEvent(
    at com.sun.xml.internal.bind.v2.runtime.unmarshaller.Loader.reportError(
    at com.sun.xml.internal.bind.v2.runtime.unmarshaller.Loader.reportError(
    at com.sun.xml.internal.bind.v2.runtime.unmarshaller.Loader.reportUnexpectedChildElement(
    at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext$DefaultRootLoader.childElement(

ast java commented Apr 11 '16, 8:24 a.m.

I am sorry Donald my input xml was wrong so that i could not update the value.
Now i can update my category value. i have rectified my fault

Thank you

showing 5 of 10 show 5 more comments

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.