Trailers: bind/unbind

To bind a trailer to a unit or unbind it from unit, use the command resource/bind_unit_trailer:

svc=resource/bind_unit_trailer&params={"resourceId":<long>,
				       "unitId":<long>,
				       "trailerId":<long>,
				       "time":<uint>,
				       "mode":<bool>}

Parameters

Name Description
resourceId resource ID
unitId unit ID
trailerId trailer ID
time time (0 – current time)
mode mode: 1 – binding, 0 – unbinding

Response

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