A service token or OAuth token must have at least one of the following access or scopes in order to use this API endpoint:
Service Token Accesses
write_organization
OAuth Scopes
| Resource | Scopes |
|---|---|
| Organization | write_organization |
The access token received from the authorization server in the OAuth 2.0 flow.
The name of the organization
The ID of the user
The role to assign to the member (e.g., 'admin', 'member'). Note: Cannot update your own role. Roles managed by IdP cannot be updated via API.
Returns the updated membership