update_custom_property
The update_custom_property method is used to create a custom property for an item or to update an existing one.
You can use this method to manage flespi integration settings (flespi token, data center region, and region configuration) stored as custom properties on the top account user item. For a step-by-step guide, see Setting flespi token and region via API.
svc=item/update_custom_property¶ms={"itemId":<long>,
"name":"<text>",
"value":"<text>"}
To delete a custom property, use the same method 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. |