Add roles to a user
PUT/api/v1/UserRole/User/:userId/Add
Adds the roles in the body to the user and returns the role numbers the user now holds. Adding the Administrator role, or the Reviewer role to a user who is not yet a reviewer, also records an event.
Permission required: Admin role.
Values for roles: 0 = None, 50 = Administrator, 150 = Reviewer.
Request
Responses
- 200
- 400
- 403
- 404
The list of role numbers the user now holds.
The change failed. The body contains the error message.
The signed-in user does not have the required role.
No user has that ID.