cleanup_driver_interval
The cleanup_driver_interval method 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 | The resource doesn’t exist, or the user doesn’t have the Create, edit, and delete drivers and Request reports and messages access rights to it. |
| 4 | One of the following errors:
|
| 3 | Failed to fetch messages. |