update_mileage_counter

To set a new value for the mileage counter, use the unit/update_mileage_counter command.

Copied!
svc=unit/update_mileage_counter&params={
    "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:

Copied!

{
    "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.

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