get_unit_trailers

The get_unit_drivers method is used to obtain the list of the drivers assigned to a unit.

Copied!
svc=resource/get_unit_trailers&params={
    "unitId": <long>   // ID of the unit
}

Parameters

The request must contain the unitId parameter which specifies the ID of the unit.

Response

If the request is completed successfully, the response is returned in the following format:

Copied!
{
  "<text>": [            /* Resource ID. */
    {
      "id": <text>,      /* Trailer ID. */
      "nm": <text>       /* Trailer name. */
    },
    ...
  ],
  ...
}

If the request fails, an error code is returned.

Error codes

Error Code Description
4 Wrong input parameters.
6 Unknown error.
7 Missing ADF_ACL_ITEM_VIEW access right to the unit.

If you find a mistake in the text, please select it and press Ctrl+Enter.

Report a mistake

Your message was sent. Thank you!

An error occurred while submitting the form

Download PDF file
Download Word document

See also