From 0b774200874a5f48a2e9a7554b2353b9607fcad5 Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Sat, 24 Feb 2024 11:41:42 -0800 Subject: [PATCH] docs(users.md): add team budgets to docs --- docs/my-website/docs/proxy/users.md | 45 +++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/docs/my-website/docs/proxy/users.md b/docs/my-website/docs/proxy/users.md index 159b311a911..9c8927caf42 100644 --- a/docs/my-website/docs/proxy/users.md +++ b/docs/my-website/docs/proxy/users.md @@ -119,6 +119,51 @@ curl --location 'http://0.0.0.0:8000/key/generate' \ --data '{"models": ["azure-models"], "user_id": "krrish3@berri.ai"}' ``` + + +You can: +- Add budgets to Teams + + +#### **Add budgets to users** +```shell +curl --location 'http://localhost:8000/team/new' \ +--header 'Authorization: Bearer ' \ +--header 'Content-Type: application/json' \ +--data-raw '{ + "team_alias": "my-new-team_4", + "members_with_roles": [{"role": "admin", "user_id": "5c4a0aa3-a1e1-43dc-bd87-3c2da8382a3a"}], + "rpm_limit": 99 +}' +``` + +[**See Swagger**](https://litellm-api.up.railway.app/#/team%20management/new_team_team_new_post) + +**Sample Response** + +```shell +{ + "team_alias": "my-new-team_4", + "team_id": "13e83b19-f851-43fe-8e93-f96e21033100", + "admins": [], + "members": [], + "members_with_roles": [ + { + "role": "admin", + "user_id": "5c4a0aa3-a1e1-43dc-bd87-3c2da8382a3a" + } + ], + "metadata": {}, + "tpm_limit": null, + "rpm_limit": 99, + "max_budget": null, + "models": [], + "spend": 0.0, + "max_parallel_requests": null, + "budget_duration": null, + "budget_reset_at": null +} +```