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

NameDescription
resourceIdResource ID.
unitIdUnit ID.
tagIdTag ID.
timeTime (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:

CodeDescription
7Failed 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).
6Failed to bind the tag.
4

Failed to fetch the tag with the desired tagId or wrong input parameters.

Download PDF file
Download Word document

See also