Driver Schedule Delete Many Ep
POST/v1/driver_schedule/delete_many
Delete Many Driver Schedules
Deletes multiple driver schedules by ID. Schedules that have orders assigned or have already been started will be rejected.
Required Scopes (ids.w)
Request Body
ids: list[str]
A list of driver schedule IDs to delete.
Response
deleted_count: int
The number of schedules successfully deleted.
errors: list[RecordError]
A list of errors for schedules that could not be deleted.
Responses
- 200
- 422
Successful Response
- application/json
- Example (from schema)
{
"deleted_count": 0,
"errors": [
{
"id": "string",
"error": "string"
}
]
}
Validation Error
- application/json
- Example (from schema)
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}
Loading...