To bind a trailer to a unit or unbind it from unit, use the command resource/bind_unit_trailer:
svc=resource/bind_unit_trailer¶ms={"resourceId":<long>, "unitId":<long>, "trailerId":<long>, "time":<uint>, "mode":<bool>}
| Name | Description | 
|---|---|
| resourceId | resource ID | 
| unitId | unit ID | 
| trailerId | trailer ID | 
| time | time (0 - current time) | 
| mode | mode: 1 - binding, 0 - unbinding | 
{} /* empty object if execution successful, if not - error code */
  |