update_custom_property

The update_custom_property method is used to create a custom property for an item or to update an existing one.

Copied!
svc=item/update_custom_property&params={"itemId":<long>,
										"name":"<text>",
				 						"value":"<text>"}

To delete a custom property, use the same method but with an empty value parameter:

Copied!
svc=item/update_custom_property&params={"itemId":<long>,
										"name":"<text>",
				 						"value":""}

Parameters

Name Description
itemId Item ID.
name Custom property name.
value Custom property value.

Returned result

Copied!
{
	"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.

If you find a mistake in the text, please select it and press Ctrl+Enter.

Report a mistake

Your message was sent. Thank you!

An error occurred while submitting the form