API
Delete a user
DELETE
https://lemurseye.com/api/v1/users/{id}Removes the account for good: they can no longer sign in, and the email address is free to invite again. To keep the account but block access, suspend instead. An owner whose invitation was never accepted can always be deleted.
Permission: users:write (a person only, never an API key). The token is sent as Authorization: Bearer <token>; see Authentication.
Path parameters
idstringrequiredThe user's id.
Response
204 Deleted. No body.
Errors
A refusal by the rules comes back as { "error": "...", "code": "..." }: branch on code, show error. Where no message is listed, only the status code is returned.
- 404
No user with this id in your company.
- 403
selfyou cannot delete yourselfThe id is your own.
- 409
last_ownerThis is the company's only active owner. Make someone else owner first, so the company is never left without one.They are the last active owner.
- 401
No token, or it has expired.
- 403
The token lacks the permission above.