API
Reset a role to the default
DELETE
https://lemurseye.com/api/v1/roles/{id}/permissionsDrops your company's changes to a role: it holds the LemursEye default permissions again. Deletes nothing else, and nobody loses the role. No body.
Permission: roles:manage (a person only, never an API key). The token is sent as Authorization: Bearer <token>; see Authentication.
Path parameters
idstringrequiredThe role:
owner,manager,viewerorinstaller.
Response
200 The role with its default permissions, customised: false.
Errors
Where a message is listed, it comes back as JSON: { "error": "..." }. Otherwise only the status code is returned.
- 404
No company role with this id.
- 401
No token, or it has expired.
- 403
The token lacks the permission above.