update_fuel_rates_params
To update the parameters of fuel consumption by rates, use the unit/update_fuel_rates_params command:
svc=unit/update_fuel_rates_params¶ms={
"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:
{}
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. |