POST method
Use the POST method to add a new entry to the attribute collection. The following examples show how to use the POST method to add new values to an attribute TextList collection.
Note The user must have administrator permission for adding values to the attribute collection.
▪ Adding new values to a TextList attribute
URL : http://fpserver.com:8091/fp/resources/workspaces/2/modules/1/elements/53/attributes/237.xml
Accept header : application/xml
Request body :
<textListEntryChange xmlns:ns="http://schema.ibm.com/focalpoint/resources"> <ns:textValue>one</ns:textValue> </textListEntryChange>
▪ Adding new values to a File attribute
URL : http://fpserver.com:8091/fp/resources/workspaces/2/modules/1/elements/53/attributes/228.xml
Accept header : application/xml
Request body :
<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>
▪ Adding new values to a LinkList attribute and deleting a link
URL : http://fpserver.com:8091/fp/resources/workspaces/2/modules/1/elements/53/attributes/236.xml
Accept header : application/xml
Request body :
<linkListChange xmlns:ns="http://schema.ibm.com/focalpoint/resources"> <ns:addLink value="http://fpserver.com:8091/fp/resources/workspaces/2/modules/13/elements/30"> </ns:addLink> <ns:deleteLink value="http://fpserver.com:8091/fp/resources/workspaces/2/modules/13/elements/29"></ns:deleteLink> </linkListChange>
▪ Updating the value of the Version attribute to the next major version
URL : http://fpserver.com:8091/fp/resources/workspaces/2/modules/1/elements/53/attributes/245.xml
Accept header : application/xml
Request body :
<VersionAttribute nextMajorVersion="true"></VersionAttribute>
Go up to
This site works best with JavaScript enabled