Skip to main content
PATCH
Update organization member role

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

organization
string
required

The name of the organization

id
string
required

The ID of the user

Body

application/json
role
string
required

The role to assign: a built-in name (admin, member, analyst) or a custom role slug. Cannot update your own role. Roles managed by IdP cannot be updated via API.

Response

Returns the updated membership

id
string
required

The ID of the membership

user
object
required
role
string
required

The role of the user in the organization. A built-in name (admin, member, analyst) or a custom role slug.

created_at
string
required

When the membership was created

updated_at
string
required

When the membership was last updated