Customer Management

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

Request

  • Base URL: https://api.aiaw.app (the document declares no server; this is the origin it was published from)
  • URL: https://api.aiaw.app/customer/update
  • Auth: one of:
    • API key in header x-litellm-api-key
    • API key in header x-litellm-api-key
    • API key in header x-litellm-api-key
    • API key in header x-litellm-api-key
    • API key in header x-litellm-api-key
    • API key in header x-litellm-api-key

Request body

user_idstring required
aliasstring nullable
blockedboolean
max_budgetnumber nullable
budget_idstring nullable
allowed_model_region'eu' | 'us' nullable
default_modelstring nullable

Response

Successful Response

unknown required

Changes

No recorded changes to this operation across all 1 revision of this API.