Set a member's Roles
Replaces the Roles the member holds; requires member:update. Giving or taking a Role that grants organization:delete, such as owner, also requires organization:delete. The last owner keeps the owner Role (409). To take every Role away, remove the member.
PUT
/organizations/{organizationId}/members/{userId}Authorization
AuthorizationBearer token (JWT) · headerrequiredAn access token issued by this service (RFC 9068), in the Authorization header as Bearer <token>.
Path parameters
organizationIdstring<uuid>requireduserIdstring<uuid>requiredRequest body
requiredapplication/jsonrolesstring[]requiredNames of the organization Roles the member holds.
min items 1
Responses
200
The member and their Roles.
user_idstring<uuid>requiredemailstringrequiredrolesstring[]requiredNames of the organization Roles the user holds.
default
The request failed.
errorstringrequiredStable machine-readable code.
Allowed:
invalid_requestunauthorizedforbiddennot_foundconflictgoneunavailableinternalmessagestringrequiredHuman-readable explanation.