Skip to main content
PATCH
Update auto-routing settings
This endpoint requires settings:write. Workspace owners and admins can change these settings.

Authorizations

Authorization
string
header
required

Bearer token authentication

Body

application/json
allowed_patterns
string[]
Maximum array length: 16
spend_profile
enum<string>
Available options:
economy,
standard,
premium,
unrestricted,
custom
max_input_price_per_million
number | null
Required range: x >= 0
max_output_price_per_million
number | null
Required range: x >= 0
objective
enum<string>
Available options:
balanced,
quality,
cost,
latency
allow_fallbacks
boolean

Response

Updated auto-routing settings

data
object
required
Last modified on October 28, 2026