update_tag_message
The update_tag_message function is used to update or delete the message of binding a tag. The tags are used when assigning or separating passengers.
Only works with the previously created bindings.
svc=resource/update_tag_message¶ms={"resourceId":<long>,
"unitId":<long>,
"tagId":<long>,
"time":<uint>,
"callMode":"<text>"}
Parameters
Name | Description |
---|---|
resourceId | Resource ID. |
unitId | The unit ID to change for assignment, 0 — to change for separation. Only required for the "update" mode. |
tagId | Tag ID. |
time | Time. |
callMode | Mode: update or delete. |
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 ADF_ACL_ITEM_VIEW). |
4 | Wrong input parameters. |
3 | Failed to fetch messages. |