get_trailer_bindings
The resource/get_trailer_bindings method allows you to get information about trailer assignments and separations during a specified time interval.
Endpoint
svc=resource/get_trailer_bindings¶ms={
"resourceId": <long>,
"unitId": <long>,
"trailerId": <long>,
"timeFrom": <uint>,
"timeTo": <uint>
}
The method is a resource-intensive request, so the limit on simultaneous resource-intensive requests during one session applies to it. If the limit is reached, the error 1003 with the
LIMIT api_concurrentreason is returned. For the list of resource-intensive requests, see Limitations.
Parameters
| Parameter | Description |
|---|---|
resourceId |
Resource ID. |
unitId |
Unit ID (0 for all units). |
trailerId |
Trailer ID (0 for all trailers). |
timeFrom |
The beginning of the interval. |
timeTo |
The end of the interval. |
Response
{
"<text>": [ /* trailer ID */
{
"t": <uint>, /* time of assignment/separation */
"u": <long> /* unit ID in case of assignment, 0 in case of separation */
},
...
],
...
}
If the request fails, an error code is returned.
Error codes
| Error code | Description |
|---|---|
| 4 | Failed to fetch the list of trailers or wrong input parameters. |
| 7 | The resource doesn’t exist or the user doesn’t have the View trailers and Request reports and messages access rights to it, or the unit doesn’t exist or the user doesn’t have the View object and its basic properties access right to it. |