API reference · Members
Change a member's role
/v1/orgs/{org_id}/members/{member_id}You can change the role only of a member who ranks no higher than you, and only to a role no higher than your own. The last owner cannot be given another role (409 last_owner). Setting the role a member already has changes nothing.
Console session only: no API key can be granted the member:update permission it needs. Requires the member:update permission (a key's scope, or a role that includes it).
Request
Path parameters
org_idstringYour organization. The SDKs and the CLI fill it in from the API key.
ID with prefix org_
member_idstringrequiredID of the member
ID with prefix mem_
Body
JSON (application/json): UpdateMemberRequest.
One of
owneradmindeveloperbillingviewer
Response
200 Member — The updated member
objectstringrequiredAlways `member`: the type of this object
One of
memberidstringrequiredUnique ID (`mem_…`)
ID with prefix mem_
org_idstringrequiredOrganization it belongs to
ID with prefix org_
user_idstringrequiredID of the user
ID with prefix usr_
One of
owneradmindeveloperbillingvieweruserobjectrequiredThe user who holds this membership
ShowHide 3 fields of
usernamestringrequiredIts name
emailstringrequiredEmail address of the user
imagestring | nullrequiredContainer image reference
created_atstring (date-time)requiredWhen it was created (ISO 8601, UTC)
Example response
{
"object": "member",
"id": "mem_01jc5zq4m8k3v6x9t2w7r0b1e4",
"org_id": "org_01jc5zq4m8k3v6x9t2w7r0b1e4",
"user_id": "usr_01jc5zq4m8k3v6x9t2w7r0b1e4",
"role": "owner",
"user": {
"name": "string",
"email": "string",
"image": "string"
},
"created_at": "2026-01-01T00:00:00.000Z"
}Errors
Errors use the standard envelope. What this operation can answer:
| Status | Type | When |
|---|---|---|
400 | invalid_request_error | A parameter or body field is missing or not allowed; param names it. |
401 | authentication_error | The key or session is missing, revoked or expired. |
403 | permission_error | The credential lacks the permission this needs, or the organization is suspended. |
404 | not_found_error | No such resource in this project (an ID from another project is answered the same way). |
409 | conflict_error | The resource's current state does not allow this. |
429 | rate_limit_error rate_limited | Too many requests; retry after retry-after seconds. |