get_unit_drivers
The get_unit_drivers method is used to receive the list of the drivers assigned to a unit.
svc=resource/get_unit_drivers¶ms={"unitId":<long>}
Parameters
| Name | Description |
|---|---|
| unitId | Unit ID. |
Returned result
{
"<text>":[ /* resource ID */
{
"id":"<text>", /* driver ID */
"nm":"<text>", /* driver name */
"ph":"<text>" /* driver phone number */
}, ...
], ...
}
The response contains only the drivers from the resources to which the user has the View drivers access right.
Possible error codes:
| Code | Description |
|---|---|
| 7 | The unit doesn’t exist, or the user doesn’t have the View object and its basic properties access right to it. |
| 6 | Undefined error. |
| 4 | Wrong input parameters. |