Tags group (passengers): create, update и delete

To create, update, delete tags group, use command: resource/update_tags_group:

svc=resource/update_tags_group&params={"itemId":<uint>,
				       "id":<uint>,
				       "callMode":<text>,
				       "n":<text>,
				       "d":<text>,
				       "tgs":[<uint>,...]}

Params

Name Description
itemId resource ID
id tags group ID (0 to create)
callMode callmode: create, update, delete
Parameters required only for create and update::
n name
d description
tgs tags ID array

Response

On create and edit:

[
	<long>,			/* group ID */
	{
		"id":<long>,		/* ID */
		"n":<text>,		/* name  */
		"d":<text>,		/* description */
		"tgs":[<uint>,...]      /* tags ID array */
	}
]

On delete:

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