Error: HTTP method is not allowed for PUT
![](http://jazz.net/_images/myphoto/43c399d43df2664799fffd26f1c910db.jpg)
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?
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?
One answer
![](http://jazz.net/_images/myphoto/43c399d43df2664799fffd26f1c910db.jpg)
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