From b88726a07e5c480c76f2632f210c08bac9f1d575 Mon Sep 17 00:00:00 2001 From: Smeet Agrawal Date: Thu, 9 Apr 2026 11:21:34 +0530 Subject: [PATCH] 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 --- litellm/proxy/management_endpoints/internal_user_endpoints.py | 1 + 1 file changed, 1 insertion(+) diff --git a/litellm/proxy/management_endpoints/internal_user_endpoints.py b/litellm/proxy/management_endpoints/internal_user_endpoints.py index a93a53f5f62..b659b064ff5 100644 --- a/litellm/proxy/management_endpoints/internal_user_endpoints.py +++ b/litellm/proxy/management_endpoints/internal_user_endpoints.py @@ -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.