Change a user's role
PUT/api/v1/admin/users/:id/role
Sets a user's role to USER or ADMIN. The last administrator cannot be demoted. The change is recorded in the audit log.
Access: Administrators only.
Request
Responses
- 204
- 400
- 401
- 403
No Content
Bad Request
Authentication is required or the provided credentials are invalid.
The authenticated user does not have permission to access this resource.