It's all about the answers!

Ask a question

400 server error on PUT of adapters list content

sara chason (27124) | asked Oct 31 '17, 10:28 a.m.
I'm interested to change the adapters list in RQM using REST API.
in order to GET the list I use this link:
as a result, I get a feed of adapters entries.
when I try to PUT back the result, even without changing it, I get a 400 server error saying:"The uploaded content does not consist of well-formed XML or does not match the XML schema for adapter"
can someone please assist?

Accepted answer

permanent link
Vijay Patil (4813) | answered Nov 10 '17, 3:40 a.m.

Hi Sara,

This is the FEED URL to get the list of resources. PUT/POST of list of resources is not supported using FEED URL.
To change the adapter list, I would suggest to get the resource link of individual adapter using FEED URL, and PUT adapter resource XML on that link.

1. Get the adapter list using FEED URL -
2. Get the resource link of the individual adapter from the response of the FEED URL.
3. Do a GET on the adapter resource link to get the adapter resource XML.
4. Modify the entries in the XML
5. PUT the XML back using the same adapter resource link to update the adapter.

Hope this helps.


sara chason selected this answer as the correct answer

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.