How to add a category value to an existing Category in ETM using API
One answer
Here are the steps:
a) Perform a GET using RestClient on the URL of an existing Category value that is part of the Category where the value must be added.
Eg:
https://<hostname>/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/<PA UUID>/category/urn:com.ibm.rqm:category:_AHR6QZgWEe6HKMoYyjvb2w
b) In the GET response remove the identifier <nsx:identifier>...</nsx:identifier> and updated <nsx:updated>...</nsx:updated> blocks in the XML. Modify the title block <nsx:title>...</nsx:title> with the intended category value name.
c) Perform a PUT with the modified XML content from step (b) on the Category URL with a unique external ID.
https://<hostname>/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/<PA ID>/category/<ExternalID>
Headers:
Accept: application/xml
Content-Type: application/xml
Eg:
https://<hostname>/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/<PA UUID>/category/MyTestCategory1
Reference:
RQM API: https://jazz.net/wiki/bin/view/Main/RqmApi