registry_maintenance_event
To register maintenance work, use the unit/registry_maintenance_event request.
svc=unit/registry_maintenance_event¶ms={
"date": <uint>,
"info": <text>,
"duration": <int>,
"cost": <double>,
"location": <text>,
"x": <double>,
"y": <double>,
"description": <text>,
"mileage": <double>,
"eh": <int>,
"done_svcs": <text>,
"itemId": <long>
}
Parameters
Parameter | Description |
---|---|
date | Date. |
info | Type of maintenance work. |
duration | Duration. |
cost | Cost. |
location | Unit location. |
x | Longitude. |
y | Latitude. |
description | Description. |
mileage | Mileage. |
eh | Engine hours. |
done_svcs | List of services (comma-separated). |
itemId | Unit ID |
Response
If the request is completed successfully, an empty object is returned.
{}
Otherwise, an error code is returned.
Error codes
Error code | Description |
---|---|
4 | One of the following errors:
|
6 | Failed to register the event. |
7 | The user doesn’t have the required access right to the unit (ADF_ACL_AVL_UNIT_REG_EVENTS). |