- service method for manual binding.
It is recommended to use theautomatic binding
To bind a tag to a unit or unbind a tag from a unit, use the command resource/bind_unit_tag:
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) |
mode | mode: 1 - bind, 0 - unbind |
Response
{} /* empty object if execution successful, if not - error code */