update_custom_property
The update_custom_property function is used to create a custom property for an item or to update an existing one.
svc=item/update_custom_property¶ms={"itemId":<long>,
"name":"<text>",
"value":"<text>"}
To delete a custom property, use the same function but with an empty value parameter:
svc=item/update_custom_property¶ms={"itemId":<long>,
"name":"<text>",
"value":""}
Parameters
Name | Description |
---|---|
itemId | Item ID. |
name | Custom property name. |
value | Custom property value. |
Returned result
{
"n":"<text>", /* custom property name */
"v":"<text>" /* custom property value */
}
Possible error codes:
Name | Description |
---|---|
7 | Failed to fetch the item with the desired ACL (ADF_ACL_ITEM_EDIT_OTHER). |
6 | Undefined error. |
4 | Wrong input parameters. |