registry_maintenance_event

To register maintenance work, use the unit/registry_maintenance_event method.

Endpoint

Copied!
svc=unit/registry_maintenance_event&params={
    "date": <uint>,
    "info": <text>,
    "duration": <uint>,
    "cost": <double>,
    "location": <text>,
    "x": <double>,
    "y": <double>,
    "description": <text>,
    "mileage": <uint>,
    "eh": <uint>,
    "done_svcs": <text>,
    "itemId": <long>
}

Parameters

Parameter Description
date Date.
info Type of maintenance work.
duration Duration (minutes).
cost Cost.
location Unit location.
x Longitude.
y Latitude.
description Description.
mileage Mileage in the measurement system of the unit: kilometers for metric (SI) and metric with gallons, miles for US and imperial.
eh Engine hours (hours).
done_svcs IDs of the service intervals that were performed, separated by commas.
itemId Unit ID.

Response

If the request is completed successfully, an empty object is returned.

Copied!
{}

Otherwise, an error code is returned.

Error codes

Error code Description
4 One of the following errors:
  • wrong input parameters,
  • the user ID is invalid or the user has signed out,
  • overflow check error (duration, mileage, engine hours).
6 Failed to register the event.
7 The user doesn’t have the Manage events access right to the unit.

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