Reference : REST RDF API reference : REST Operations : HTTP methods : HTTP PUT
  
HTTP PUT
The HTTP PUT method is supported only for the Element resource. The Element RDF/XML document received from an HTTP GET call can be used to update attributes by using a PUT call.
URI: http://fpserver/fp/resources/workspaces/2/modules/1/elements/53.rdf
HTTP Accept Header: application/xml (or URl Extension: .xml)
Request body:
<rdf:RDF
   xmlns:dcterms="http://purl.org/dc/terms/"    xmlns:fps="http://jazz.net/ns/psm/focalpoint#"
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:fpdt="http://jazz.net/ns/psm/focalpoint/datatypes#"
   xmlns:xsd="http://www.w3.org/2001/XMLSchema#" xmlns:module_2_1="http://focalpointserver/fp/resources/workspaces/2/modules/1/ns#"
   xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
   xmlns:oslc="http://open-services.net/ns/core#"
xmlns:workspace_2="http://focalpointserver/fp/resources/workspaces/2/ns#"
   xmlns:oslc rm="http://open-services.net/ns/rm#" >
   <rdf:Description rdf:about="http://focalpointserver/fp/resources/workspaces/2/modules/1/elements/53">
   <dcterms:title rdf:parseType="Literal">New Title value</dcterms:title>
   <fps:genericLink rdf:resource="http://focalpointserver/fp/resources/workspaces/2/modules/1/elements/53?format=genericrdf"/>
   <fps:inModule rdf:resource="http://focalpointserver/fp/resources/workspaces/2/modules/1"/>
   <dcterms:identifier>c414ea18-25ea-4bc1-8cc6-830a074a01d5</dcterms:identifier>
   <rdf:type rdf:resource="http://focalpointserver/fp/resources/workspaces/2/ns#Business Need"/>
   </rdf:Description>
</rdf:RDF>
Result:
After a successful PUT call, the title attribute of element 53 is changed to 'New Title value'. Though the example shows updating of only one attribute, it is possible to update more than one attribute in a single PUT call.
Go up to
HTTP methods