It's all about the answers!

Ask a question

How to create new labResourceAttribute via RQM API

evgeniia melamud (133) | asked Jul 19 '21, 3:16 a.m.
edited Aug 02 '21, 4:18 a.m.


We're using RQM both via UI and RESTApi and we would like to automate the process of adding new lab resources attributes to RQM. (Unfortunately I can't post a screenshot, but those attributes can be seen at 
Manage Project Properties -> Properties -> Lab Resources and Channel Properties)

I've checked the Api specification here:, and I can see that it's possible to PUT new lab resource, but it's not possible to POST new lab resource attribute.

I'm trying to use PUT method for creating LabResourceAttribute, but doesn't matter what I'm trying to do I get 400 Bad request responce.

Here is the example of xml I'm trying to use as a body for PUT method

<ns2:labresourceattribute xmlns:ns2="" xmlns:ns1="" xmlns:ns3="" xmlns:ns4="" xmlns:ns5="" xmlns:ns6="" xmlns:ns7="" xmlns:ns8="" xmlns:ns9="" xmlns:ns10="" xmlns:ns11="" xmlns:ns12="" xmlns:ns13="" xmlns:ns14="" xmlns:ns15="" xmlns:ns16="" xmlns:ns17="" xmlns:ns18="" xmlns:ns20="" xmlns:ns21="">

In RQM log there is something about ID:
Cannot create or update a resource of type labresourceattribute with a missing ID

but in the documentation it stays that it's enough to define external ID which IS defined.

Thanks in advance 

Accepted answer

permanent link
abhishek gour (3812) | answered Jul 20 '21, 2:38 p.m.
edited Jul 20 '21, 2:46 p.m.


As you have mentioned the complete list of attributes can be obtained via -

While creating Lab Resource attribute - you could create a new attribute under a given parent using PUT request. See labresourceattribute under -

The load body you have provided looks good. But the URI is not mentioned.
The sample URI could be -
The created attribute would be assigned with this external ID.

evgeniia melamud selected this answer as the correct answer

evgeniia melamud commented Jul 21 '21, 3:30 a.m.

 Thank you very much, it works now with the trick that externalId has to be written as a part of URL

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.