v17

latestOpenAPI 3.0.1raw.githubusercontent.com2026-07-08165682.0 MB
Organization members

Update organization member role

Authorization

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

ResourceScopes
Organizationwrite_organization
patch/organizations/{organization}/members/{id}

Path parameters

organizationstring required

The name of the organization

idstring required

The ID of the user

Request body

rolestring required

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.

Response

Returns the updated membership

idstring required

The ID of the membership

role'member' | 'admin' required

The role of the user in the organization

created_atstring required

When the membership was created

updated_atstring required

When the membership was last updated