Change a user's role.
PUT/users/:id/role
Update a user's role to grant or revoke permissions. You cannot change your own role.
Requires: Admin role.
Request
Responses
- 200
- 400
- 401
- 403
- 404
Role updated successfully.
Invalid role or trying to change own role.
Unauthorized
Insufficient permissions (Admin required).
User not found.