get_drive_rank_settings
To get the eco driving criteria of a unit, use the unit/get_drive_rank_settings method.
Endpoint
svc=unit/get_drive_rank_settings¶ms={
"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:
{
"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. |