Permission required: depends on what you send:
- When you send
role:member:change_role - When you send
max_tokens:member:set_quota - When the role assigned is admin-level: tenant_admin, or a custom role holding any admin-only team action: team owner only
- When the member is not ranked below you: the owner, an admin, or a holder of an admin-level custom role (403 MEMBER_NOT_BELOW_CALLER) — role and max_tokens alike: team owner only
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 withsuccess: false, a message and an error_code. See Error Codes for every code.