Administrative fields

To crreate, update or delete administrative fields, use the command item/update_admin_field:

svc=item/update_admin_field&params={"itemId":<long>,
				    "id":<long>,		
				    "callMode":<text>,
				    "n":<text>,
				    "v":<text>}

Parameters

Name Description
itemId item ID
id administrative field ID (not taken into account when creating; IDs for new administrative fields are generated by the system)
callMode action: create, update, delete
Optional parameters (required for create and update)
n administrative field name
v administrative field value

Response

When creating or updating administrative fields, response format will be:

[
	<long>,		/* administrative field ID */
	{
		"id":<long>,	/* administrative field ID */
		"n":<text>,	/* name */
		"v":<text>	/* value */
	}
]

When deleting:

[
	<long>,		/* administrative field ID */
	null
]