fix: add password field to new_user docstring for API docs validation

The documentation CI test (test_api_docs.py) validates that every field
on NewUserRequest is documented in the new_user() docstring. Adding
password to the docstring so the check passes.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Smeet Agrawal 2026-04-09 11:21:34 +05:30
parent ff8c1153dd
commit b88726a07e

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
- password: Optional[str] - Password for the user (minimum 8 characters). Stored as a scrypt hash; never returned in responses.
Returns:
- key: (str) The generated api key for the user
- expires: (datetime) Datetime object for when key expires.