Reference : JSON REST API reference : Attributes : POST method
  
POST method
Use this 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: https://fpserver.com:9443/fp/resources/workspaces/2/modules/1/elements/53/attributes/237.json
Accept header: application/json
Request body: {"textValue":"test 2"}
Adding new values to a File attribute
URL: https://fpserver.com:9443/fp/resources/workspaces/2/modules/1/elements/53/attributes/228.json
Accept header: application/json
Request body: {"fileName":"a.txt","contentType":"plain/text","fileData":"YWJj"}
Adding new values to a LinkList attribute and deleting a link
URL: https://fpserver.com:9443/fp/resources/workspaces/2/modules/1/elements/53/attributes/236.json
Accept header: application/json
Request body:
{
"linklist":[
{"value" : "https://fpserver.com:9443/fp/resources/workspaces/44/modules/13/elements/40"},
{"value" : "https://fpserver.com:9443/fp/resources/workspaces/44/modules/13/elements/41"}
]
}
Go up to
Attributes