API
Delete a driver
DELETE
https://lemurseye.com/api/v1/drivers/{id}Deletes a driver who has never driven a recorded trip. A driver with trips is refused, so their history stays credited: set active to false with Update a driver instead.
Permission: drivers:write. The token is sent as Authorization: Bearer <token>; see Authentication.
Path parameters
iduuidrequiredThe driver's id.
Response
204 Deleted. No body.
Errors
Where a message is listed, it comes back as JSON: { "error": "..." }. Otherwise only the status code is returned.
- 404
driver not foundNo driver with this id.
- 409
driver has 12 trip(s) — deactivate insteadThe driver has recorded trips.
- 401
No token, or it has expired.
- 403
The token lacks the permission above.