Reference : REST XML API reference : Attributes : PUT method
  
PUT method
The following table gives examples of how to update the specified attribute values by using the PUT method:
 
Attribute type
Request body
Check Box, Lock
<checkBoxChange value="false"> </checkBoxChange>
Choice
<choiceAttributeChange value="Closed"> </choiceAttributeChange>
Date
<dateChange xmlns:ns="http://schema.ibm.com/focalpoint/resources"> <ns:value>2011-01-01T00:00:00+05:30</ns:value> </dateChange>
Float
<floatChange xmlns:ns="http://schema.ibm.com/focalpoint/resources"> <ns:value>201</ns:value> </floatChange>
File
URL example: http://localhost:8080/fp/resources/workspaces/3/modules/13/elements/16/attributes/237/files/01.xml <fileChange xmlns:ns="http://schema.ibm.com/focalpoint/resources"> <ns:fileName>a.txt</ns:fileName> <ns:contentType>plain/text</ns:contentType> <ns:fileData>YWJj</ns:fileData> </fileChange>
Link
<linkValueChange value="http://fpserver.com:8091/fp/resources/workspaces/2/modules/1/elements/16"> </linkValueChange>
Integer
<integerChange xmlns:ns="http://schema.ibm.com/focalpoint/resources"> <ns:value>201</ns:value> </integerChange>
List (Link)
<linkChange xmlns:ns="http://schema.ibm.com/focalpoint/resources"> <ns:linkChange value="http://fpserver.com:8091/fp/resources/workspaces/2/modules/1/elements/72"> </ns:linkChange> <ns:linkChange value="http://fpserver.com:8091/fp/resources/workspaces/2/modules/1/elements/73"> </ns:linkChange> </linkChange>
List (Text)
URL example:
http://localhost:8080/fp/resources/workspaces/3/modules/13/elements/19/attributes/247/entries/1369815257240.xml <textListEntryChange xmlns:ns="http://schema.ibm.com/focalpoint/resources"> <ns:textValue>one</ns:textValue> </textListEntryChange>
Matrix
<matrixChange xmlns:ns="http://schema.ibm.com/focalpoint/resources"> <ns:row> <ns:cell> <ns:value>A</ns:value> </ns:cell> <ns:cell> <ns:value>B</ns:value> </ns:cell> </ns:row> <ns:row> <ns:cell> <ns:value>Row 1</ns:value> </ns:cell> <ns:cell> <ns:value>Simple text value</ns:value> </ns:cell> <ns:cell> <ns:expression>1 + 2</ns:expression> </ns:cell> </ns:row> </matrixChange>
MultiChoice
<multichoiceAttributeValues xmlns:ns="http://fpserver.com:8091/fp/namespace/workspaces/2/modules/1/attribute"> <ns:selected>Open</ns:selected> <ns:selected>One</ns:selected> </multichoiceAttributeValues>
Text
<textAttributeChange xmlns:ns="http://schema.ibm.com/focalpoint/resources"> <ns:textValue>new text value</ns:textValue> </textAttributeChange>
Timegrid (Header)
<timeGridChange xmlns:ns="http://fpserver.com:8091/fp/namespace/workspaces/2/modules/1/attribute"> <ns:timeGridSetting sheetId="1" startDate="2011-12-31" endDate="2012-03-30"> </ns:timeGridSetting> </timeGridChange>
TimeGrid (Data)
<timeGridChange xmlns:ns="http://fpserver.com:8091/fp/namespace/workspaces/2/modules/1/attribute"> <ns:cell sheetId="1" date="2011-12-31" columnId="A" rowId="1"> <ns:value>23</ns:value> </ns:cell> <ns:cell sheetId="1" date="2011-12-31" columnId="A" rowId="2"> <ns:value>24</ns:value> </ns:cell> </timeGridChange>
UniqueID
<uniqueIdChange value="5671"> </uniqueIdChange>
URL
<urlChange value="www.ibm.com/developerworks"> </urlChange>
Go up to
Attributes