LemursEye
Documentation
API

Delete a driver

DELETEhttps://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

  • iduuidrequired

    The 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 found

    No driver with this id.

  • 409
    driver has 12 trip(s) — deactivate instead

    The driver has recorded trips.

  • 401

    No token, or it has expired.

  • 403

    The token lacks the permission above.