update_eh_counter

To set a new value for the counter of engine hours, use the unit/update_eh_counter method.

Copied!
svc=unit/update_eh_counter&params={
    "itemId": <long>,
    "newValue": <double>
}

Parameters

The request must contain the following parameters:

Parameter Description
itemId Unit ID.
newValue New value of the engine hours counter (h). The value in seconds must be within the range of 0 to 0xFFFFFFFF, that is, the value in hours must not exceed 1193046.47.

Response

If the request is completed successfully, a response in the following format is returned:

Copied!

{
    "cneh": <double> /* Value of the engine hours counter (h). */
}

Otherwise, an error code is returned.

Error codes

Error code Description
4 Wrong input parameters, or the newValue value is out of range.
6 Failed to update the engine hours counter.
7 No Edit counters access right to the unit.

If you find a mistake in the text, please select it and press Ctrl+Enter.