bind_unit_tag

The bind_unit_tag function is used to bind a tag to a unit or to unbind it manually. The tags are used when assigning or separating passengers.

Copied!
svc=resource/bind_unit_tag&params={"resourceId":<long>,
				   				   "unitId":<long>,
				   				   "tagId":<long>,
				   				   "time":<uint>,
				   				   "mode":<bool>
								  }

Parameters

Name Description
resourceId Resource ID.
unitId Unit ID.
tagId Tag ID.
time Time (0 — current time). Unix time value in GMT+0 time zone.
mode Modes:
  • 1/true — bind;
  • 0/false — unbind.

Returned result

If the request is successful, an empty JSON is returned.

Copied!
{ }

If not, an error code is returned. Possible error codes:

Code Description
7 Failed to fetch the resource with the desired ACL (ADF_ACL_AVL_RES_EDIT_TAGS) or failed to fetch the unit with the desired ACL (ADF_ACL_ITEM_VIEW).
6 Failed to bind the tag.
4 Failed to fetch the tag with the desired tagId or wrong input parameters.

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