Change a member's role
PUT/v1/org/members/:userId
Sets the role of one member of the calling organization. Members are addressed by user identifier, the same value the roster returns as user.id. A member of another organization is reported as not found. The last remaining administrator cannot be demoted. Requires the users:write scope.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 409
The updated member.
The role is missing or not one of the assignable roles.
Missing or invalid access token.
The token does not carry the users:write scope.
No such member in the calling organization.
The change would leave the organization without an administrator.