update_fuel_rates_params

To update the parameters of fuel consumption by rates, use the unit/update_fuel_rates_params command:

Copied!
svc=unit/update_fuel_rates_params&params={
    "itemId": <long>,
    "consSummer": <double>,
    "consWinter": <double>,
    "winterMonthFrom": <ubyte>,
    "winterDayFrom": <ubyte>,
    "winterMonthTo": <ubyte>,
    "winterDayTo": <ubyte>
}

Parameters

The request must contain the following parameters:

Parameter Description
itemId Unit ID.
consSummer Summer fuel consumption, liters per 100 km.
consWinter Winter fuel consumption, liters per 100 km.
winterMonthFrom Starting month of the winter period (0–11).
winterDayFrom Starting day of the winter period (1–31).
winterMonthTo Ending month of the winter period (0–11).
winterDayTo Ending day of the winter period (1–31).

Response

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

Copied!

{}

Otherwise, an error code is returned.

Error codes

Error code Description
6 Failed to update the parameters of fuel consumption rates.
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