It's all about the answers!

Ask a question

RQM: How to created nested categories wirt REST API

Jörg Werner (3033781) | asked Feb 04 '14, 9:15 a.m.

Is it possible to create a nested category structure using REST API and if yes can you please provide the syntax.

Example: Two categories Country and City with some values:

 thanks a lot, Joerg

Accepted answer

permanent link
Paul Slauenwhite (8.4k12) | answered Feb 05 '14, 2:36 p.m.
Yes, using the categoryType and category resource types (  I would recommend creating an example in the RQM UI and using the RQM REST API to GET the categoryType and category resources to see the desired structure.
Jörg Werner selected this answer as the correct answer

Jörg Werner commented Feb 06 '14, 4:00 a.m.

Thanks, Paul,

I could import a nested structure, but so far without values. Next step will be to import  values as well :-).


Jörg Werner commented Feb 06 '14, 4:02 a.m.


<?xml version="1.0" encoding="utf-8"?><categoryType xmlns="" xmlns:dc="">   <dc:title>Country</dc:title>   <scope>TestCase</scope>   <required>false</required>   <multiSelectable>false</multiSelectable></categoryType>

<?xml version="1.0" encoding="utf-8"?><categoryType xmlns="" xmlns:dc="">   <dc:title>City</dc:title>   <scope>TestCase</scope>   <required>false</required>   <multiSelectable>false</multiSelectable>   <dependsOn href="./categorytype01.xml"/></categoryType>

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.