update_mileage_counter
To set a new value for the mileage counter, use the unit/update_mileage_counter command.
svc=unit/update_mileage_counter¶ms={
"itemId": <long>,
"newValue": <uint>
}
Parameters
The request must contain the following parameters:
Parameter | Description |
---|---|
itemId | Unit ID. |
newValue | New value of the mileage counter (km). |
Response
If the request is completed successfully, a response in the following format is returned:
{
"cnm": <uint> /* Value of the mileage counter (km). */
}
Otherwise, an error code is returned.
Error codes
Error code | Description |
---|---|
4 | Wrong input parameters. |
6 | Failed to update the mileage counter. |
7 | No ADF_ACL_AVL_UNIT_EDIT_COUNTERS access right to the unit. |