update_fuel_math_params

To update the parameters of mathematical calculation of fuel consumption, use the unit/update_fuel_math_params method.

Copied!
svc=unit/update_fuel_math_params&params={
    "itemId": <long>,
    "idling": <double>,
    "urban": <double>,
    "suburban": <double>
}

Parameters

The request must contain the following parameters:

Parameter Description
itemId Unit ID.
idling Idling, liters per hour.
urban Urban cycle, liters per 100 km.
suburban Suburban cycle, liters per 100 km.

Response

If the request is completed successfully, an empty object is returned:

Copied!

{
    /* Parameters updated. */
}

Otherwise, an error code is returned.

Error codes

Error code Description
4 Invalid input parameters.
6 Failed to update the parameters of mathematical calculation.
7 The unit doesn’t exist, or the user doesn’t have the Edit trip, driving and health check settings access right to it.

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