Update
Update End User
Example curl
Parameters:
- user_id: str
- alias: Optional[str] = None # human-friendly alias
- blocked: bool = False # allow/disallow requests for this end-user
- max_budget: Optional[float] = None
- budget_id: Optional[str] = None # give either a budget_id or max_budget
- allowed_model_region: Optional[AllowedModelRegion] = ( None # require all user requests to use models in this specific region )
- default_model: Optional[str] = ( None # if no equivalent model in allowed region - default all requests to this model )
Example curl:
curl --location 'http://0.0.0.0:4000/customer/update' --header 'Authorization: Bearer sk-1234' --header 'Content-Type: application/json' --data '{
"user_id": "test-litellm-user-4",
"budget_id": "paid_tier"
}'
See below for all params
POST/customer/update
Authorization
Body
user_id*User Id
aliasAlias
blockedBlocked
max_budgetMax Budget
budget_idBudget Id
allowed_model_regionAllowed Model Region
default_modelDefault Model
Response
Successful Response
Body
any
Request
Response