get_drive_rank_settings

To get the eco driving criteria of a unit, use the unit/get_drive_rank_settings method.

Endpoint

Copied!
svc=unit/get_drive_rank_settings&params={
    "itemId": <long>
}

Parameters

The request must contain the following parameter:

Parameter Description
itemId Unit ID.

Response

If the request is completed successfully, the response contains the eco driving criteria of the unit and their parameters:

Copied!
{
    "acceleration": [...],
    "brake": [...],
    "turn": [...],
    "sensor": [...],
    "speeding": [...],
    "harsh": [...],
    "idling": [...],
    "global": {...}
}

The response contains only the criterion types configured for the unit. For all eco driving criteria and parameters, see update_drive_rank_settings.

If no criteria are configured, an empty object is returned.

If the request fails, an error code is returned.

Error codes

Error code Description
7 The unit doesn’t exist, or the user doesn’t have the View detailed object properties access right to it.

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