get_unit_trailers
The get_unit_trailers method is used to obtain the list of the trailers 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. */
},
...
],
...
}
The response contains only the trailers from the resources to which the user has the View trailers access right.
If the request fails, an error code is returned.
Error codes
| Error Code | Description |
|---|---|
| 4 | Wrong input parameters. |
| 6 | Unknown error. |
| 7 | The unit doesn’t exist, or the user doesn’t have the View object and its basic properties access right to it. |