get_unit_drivers

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

Copied!
svc=resource/get_unit_drivers&params={"unitId":<long>}

Parameters

Name Description
unitId Unit ID.

Returned result

Copied!
{
    "<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.

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