get_unit_trailers
The get_unit_drivers method is used to obtain the list of the drivers assigned to a unit.
svc=resource/get_unit_trailers¶ms={
"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:
{
"<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. |