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.
It is recommended to assign passengers automatically.
svc=resource/bind_unit_tag¶ms={"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:
|
Returned result
If the request is successful, an empty JSON is returned.
{ }
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. |