docs(user_management): add budget_limits param to new_user docstring

This commit is contained in:
Ishaan Jaffer 2026-04-17 12:51:53 -07:00
parent 4423d09845
commit 09e0137bb2
No known key found for this signature in database

View file

@ -395,6 +395,7 @@ async def new_user(
- object_permission: Optional[LiteLLM_ObjectPermissionBase] - internal user-specific object permission. Example - {"vector_stores": ["vector_store_1", "vector_store_2"]}. IF null or {} then no object permission.
- prompts: Optional[List[str]] - List of allowed prompts for the user. If specified, the user will only be able to use these specific prompts.
- organizations: List[str] - List of organization id's the user is a member of
- budget_limits: Optional[list] - List of concurrent budget windows for the user. Each window specifies a budget_limit, time_period, and optional budget_duration. Example - [{"budget_limit": 10.0, "time_period": "1d"}, {"budget_limit": 50.0, "time_period": "7d"}].
Returns:
- key: (str) The generated api key for the user
- expires: (datetime) Datetime object for when key expires.