Tags (e.g. passengers): bind/unbind

:!: – service method for manual binding.
It is recommended to use the automatic 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&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)
mode mode: 1 – bind, 0 – unbind

Response

{}	/* empty object if execution successful, if not - error code */