OpenAPI 3.1.02026-08-226994571.1 MB

1e929292ddd5

team management

Team Member Add

Add new members (either via user_email or user_id) to a team

If user doesn't exist, new user row will also be added to User Table

Only proxy_admin or admin of team, allowed to access this endpoint.


curl -X POST 'http://0.0.0.0:4000/team/member_add'     -H 'Authorization: Bearer sk-1234'     -H 'Content-Type: application/json'     -d '{"team_id": "45e3e396-ee08-4a61-a88e-16b3ce7e0849", "member": {"role": "user", "user_id": "krrish247652@berri.ai"}}'

post/team/member_add

Request body

team_idstring required

The ID of the team to add the member to

max_budget_in_teamnumber nullable

Maximum budget allocated to this user within the team. If not set, user has unlimited budget within team limits

Response

Successful Response

team_aliasstring nullable
team_idstring required
organization_idstring nullable
team_member_permissionsstring[] nullable
metadataobject nullable
tpm_limitinteger nullable
rpm_limitinteger nullable
max_budgetnumber nullable
soft_budgetnumber nullable
budget_durationstring nullable
blockedboolean
router_settingsobject nullable
access_group_idsstring[] nullable
spendnumber nullable
max_parallel_requestsinteger nullable
budget_reset_atstring date-time nullable
model_idinteger nullable
updated_atstring date-time nullable
created_atstring date-time nullable
object_permission_idstring nullable