LemursEye
Documentation
API

Delete a vehicle

DELETEhttps://lemurseye.com/api/v1/vehicles/{id}

Deletes a vehicle. A vehicle with a tracker still fitted is refused: unassign it first.

Permission: fleet:write. The token is sent as Authorization: Bearer <token>; see Authentication.

Path parameters

  • iduuidrequired

    The vehicle'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
    vehicle not found

    No vehicle with this id.

  • 409
    vehicle has 1 assigned device(s) — unassign first

    A tracker is still fitted to it.

  • 401

    No token, or it has expired.

  • 403

    The token lacks the permission above.