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
Headers
Request Body
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.