API
Delete a vehicle
DELETE
https://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
iduuidrequiredThe 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 foundNo vehicle with this id.
- 409
vehicle has 1 assigned device(s) — unassign firstA tracker is still fitted to it.
- 401
No token, or it has expired.
- 403
The token lacks the permission above.