update_tags_group

The update_tags_group function is used to create, edit, or delete tag groups. The tags are used when assigning or separating passengers.

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

Parameters

NameDescription
itemIdResource ID.
idTag group ID.
callModeAction: create, update, delete.

The following parameters are only required to create and delete tag groups:

NameDescription
nName.
dDescription.
trsThe array of tag IDs.

Returned result

For creation and modification requests:

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

For deletion requests:

Copied!
[
	<long>,		/* group ID */
	null
]

Possible error codes:

CodeDescription
7Failed to fetch the resource with the desired ACL (ADF_ACL_AVL_RES_EDIT_TAGS).
6Failed to get the current user or undefined error.
4Wrong input parameters.

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

Your message was sent. Thank you!

Report a mistake

An error occurred while submitting the form

Download PDF file
Download Word document

See also