Skip to main content
Changes a member’s role and/or per-member usage cap. Only the fields you send change; null is rejected. The owner role cannot be assigned here, and the owner’s own role and your own role cannot be changed — use Transfer Ownership to hand the team to another member.
Permission required: depends on what you send:
  • When you send role: member:change_role
  • When you send max_tokens: member:set_quota
  • Changes that give someone an admin role, or that reduce what an admin can reach, also require the team owner or an admin.

Path Parameters

string
required
Identifier of the member (principal_id)

Headers

string
Optional. Retrying with the same value replays the first result.

Request Body

integer
Per-member usage cap in tokens, at most 1374389534. 0 removes the cap.
string
New role: tenant_admin, tenant_member, or a custom role key of this team. The owner role cannot be assigned here.

Response

Errors

Errors answer with success: false, a message and an error_code. See Error Codes for every code.