update_fuel_math_params
To update the parameters of mathematical calculation of fuel consumption, use the unit/update_fuel_math_params command.
svc=unit/update_fuel_math_params¶ms={
"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:
{
/* 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. |