Gateway

Update auto-routing settings

Changed on

Changes the fields sent; the result is validated as a whole, as the dashboard saves it. A custom spend_profile needs both price limits. Owners and admins; settings:write required.

patch/routing/auto

Request

  • Base URL
    https://api.phaseo.app/v1
  • URL
    https://api.phaseo.app/v1/routing/auto
  • Auth
    HTTP bearer

Request body

allowed_patternsstring[]
spend_profile'economy' | 'standard' | 'premium' | 'unrestricted' | 'custom'
max_input_price_per_millionnumber nullable
max_output_price_per_millionnumber nullable
objective'balanced' | 'quality' | 'cost' | 'latency'
allow_fallbacksboolean

Response

Updated auto-routing settings

Changes