Set a member's custom roles
Requires a current human organization owner or admin, plus write:org for OAuth tokens and API keys. Service accounts are refused, including administrative ones. Browser writes require a live uncached session and trusted Origin. roleIds replaces the member’s custom roles; an empty list removes them. At most one role is accepted for now; more returns 400 CUSTOM_ROLE_LIMIT. Only a human whose organization role is member can hold a custom role: an owner, an admin or a service account returns 409 CUSTOM_ROLE_REQUIRES_MEMBER, so change the role to member first. An empty list is accepted for any member. The organization role stays member. A role of another organization returns 404. A member later promoted or removed loses the custom role. Custom roles are not enforced by any API yet: scopes is what the platform shows, not what a key or a request is limited to.