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-llm-user-4",
    "budget_id": "paid_tier"
}'

See below for all params 
Language
Credentials
Bearer
URL
Click Try It! to start a request and see the response here!