Skip to main content
PATCH
Update organization member role
This endpoint requires an Admin Key with the org:write scope, and the key owner must still be an organization admin at call time (otherwise 403 owner_not_admin).

Authorizations

Authorization
string
header
required

Send the Admin API secret as a Bearer token in the Authorization header (Bearer sk-admin-***). Create Admin Keys under Console → Organization → Admin API Keys.

Path Parameters

uid
string
required

User ID of the member.

Body

application/json
role
enum<string>
required

Target role: admin or member.

Available options:
admin,
member
Example:

"admin"

Response

Updated member.

uid
string
required

User ID of the member.

name
string
required

Member nickname.

role
enum<string>
required

Member role: admin or member.

Available options:
admin,
member
created_at
string<date-time>
required

When the member joined the organization (for project-member endpoints, when the member joined the project).