latestOpenAPI 3.1.02026-08-197104501.1 MB
8fbaab4fc7c5
team management
Bulk Team Member Add
Bulk add multiple members to a team at once.
This endpoint reuses the same logic as /team/member_add but provides a bulk-friendly response format.
Parameters:
- team_id: str - The ID of the team to add members to
- members: List[Member] - List of members to add to the team
- all_users: Optional[bool] - Flag to add all users on Proxy to the team
- max_budget_in_team: Optional[float] - Maximum budget allocated to each user within the team
Returns:
- results: List of individual member addition results
- total_requested: Total number of members requested for addition
- successful_additions: Number of successful additions
- failed_additions: Number of failed additions
- updated_team: The updated team object
Example request:
curl --location 'http://0.0.0.0:4000/team/bulk_member_add' --header 'Authorization: Bearer sk-1234' --header 'Content-Type: application/json' --data '{
"team_id": "team-1234",
"members": [
{
"user_id": "user1",
"role": "user"
},
{
"user_email": "user2@example.com",
"role": "admin"
}
],
"max_budget_in_team": 100.0
}'
post/team/bulk_member_add
Request body
Response
Successful Response