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.
svc=resource/update_tags_group¶ms={"itemId":<uint>,
"id":<uint>,
"callMode":"<text>",
"n":"<text>",
"d":"<text>",
"tgs":[<uint>,...]}
Parameters
Name | Description |
---|---|
itemId | Resource ID. |
id | Tag group ID. |
callMode | Action: create, update, delete. |
The following parameters are only required to create and delete tag groups:
Name | Description |
---|---|
n | Name. |
d | Description. |
trs | The array of tag IDs. |
Returned result
For creation and modification requests:
[
<long>, /* group ID */
{
"id":<long>, /* ID */
"n":"<text>", /* name */
"d":"<text>", /* description */
"tgs":[<uint>,...] /* tag IDs array */
}
]
For deletion requests:
[
<long>, /* group ID */
null
]
Possible error codes:
Code | Description |
---|---|
7 | Failed to fetch the resource with the desired ACL (ADF_ACL_AVL_RES_EDIT_TAGS). |
6 | Failed to get the current user or undefined error. |
4 | Wrong input parameters. |