update_fuel_math_params

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

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
6 Failed to update the parameters of mathematical calculation.
7 No ADF_ACL_AVL_UNIT_EDIT_REPORT_SETTINGS access right to the unit.

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

Your message was sent. Thank you!

Report a mistake

An error occurred while submitting the form

Download PDF file
Download Word document

See also