Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Error: HTTP method is not allowed for PUT

Hi,

I am trying do update an existing Requirement using PUT.
I have tried several different URI with no success.

PUT on https://server:port/rm/publish/text?resourceURI=resourceURI gives error message 405 "HTTP method is not allowed"

PUT on https://server:port/rm/resources/resourceURI
gives an error message 403 "Error parsing content. Content must be valid rdf+xml"

The request body looks like
<xml>
<rdf>
<rdf>
<dc>PUT from rest</dc>
</rdf>
</rdf>

Can someone please help me getting the request-body correct or explain which URI that should be used for updating an existing requirement?

0 votes



One answer

Permanent link
Hi,

I am trying do update an existing Requirement using PUT.
I have tried several different URI with no success.

PUT on https://server:port/rm/publish/text?resourceURI=resourceURI gives error message 405 "HTTP method is not allowed"

PUT on https://server:port/rm/resources/resourceURI
gives an error message 403 "Error parsing content. Content must be valid rdf+xml"

The request body looks like
<xml>
<rdf>
<rdf>
<dc>PUT from rest</dc>
</rdf>
</rdf>

Can someone please help me getting the request-body correct or explain which URI that should be used for updating an existing requirement?


You should use the OSLC APIs (Open Services for Lifecycle Collaboration) in order to create and update requirements. See this specification for details. There are some sample resources at the bottom of the page.
http://open-services.net/bin/view/Main/RmSpecificationV2?sortcol=table;table=up#Creation_Factories

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Sep 16 '11, 11:05 a.m.

Question was seen: 5,806 times

Last updated: Sep 16 '11, 11:05 a.m.

Confirmation Cancel Confirm