cleanup_driver_interval
The cleanup_driver_interval function is used to delete the records about assigning a driver to a unit or separating it from a unit during a specified time interval.
svc=resource/cleanup_driver_interval¶ms={"resourceId":<long>,
"driverId":<long>,
"timeFrom":<uint>,
"timeTo":<uint>
}
Parameters
Name | Description |
---|---|
resourceId | Resource ID. |
driverId | Driver ID. |
timeFrom | The beginning of the interval. |
timeTo | The end of the interval. |
Returned result
If the request is successful, an empty JSON is returned.
{ }
If not, an error code is returned. Possible error codes:
Code | Description |
---|---|
7 | Failed to fetch the resource with the desired ACL (ACL_RES_EDIT_DRIVERS and ACL_ITEM_EXECUTE_REPORTS). |
4 | One of the following errors:
|
3 | Failed to fetch messages. |