fix(auth): document /user/new password rejection and format password_policy

This commit is contained in:
Oliver Jensen 2026-09-03 16:54:26 +02:00
parent 71d6ad0647
commit 25700e9b8a
2 changed files with 2 additions and 2 deletions

View file

@ -151,8 +151,7 @@ async def validate_password_not_breached(
return
raise ProxyException(
message=(
"This password appears in known data breaches and cannot be used. "
"Please choose a different password."
"This password appears in known data breaches and cannot be used. Please choose a different password."
),
type=ProxyErrorTypes.validation_error,
param="password",

View file

@ -484,6 +484,7 @@ async def new_user(
- 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"}].
- password: Optional[str] - Not supported; any value is rejected with a 422. Users set their own password through an invitation link (POST /invitation/new).
Returns:
- key: (str) The generated api key for the user
- expires: (datetime) Datetime object for when key expires.