Table of Contents

Custom fields

To update custom fields, use the command item/update_custom_field:

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

Parameters

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

Response

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

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

When deleting:

[
	<long>,		/* custom field ID */
	null
]
Follow us on Facebook Gurtam Wialon Twitter Gurtam Wialon info@gurtam.com   |   Copyright © 2002-2024 Gurtam