bind_unit_trailer

The bind_unit_trailer function is used to assign trailers to units or to separate them from units.

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

Parameters

NameDescription
resourceIdResource ID.
unitIdUnit ID.
trailerIdTrailer ID.
timeTime (0 — current time).
mode

Modes:

  • 1/true — assign;
  • 0/false — separate.

Returned result

If the request is successful, an empty JSON is returned.

Copied!
{ }

If not, an error code is returned. Possible error codes:

CodeDescription
7Failed to fetch the resource with the desired ACL (ADF_ACL_AVL_RES_EDIT_TRAILERS) or failed to fetch the unit with the desired ACL (ADF_ACL_ITEM_VIEW).
6Failed to assign the trailer.
4

Failed to fetch the trailer with the desired trailerId or wrong input parameters.

Download PDF file
Download Word document

See also