Update a routing policy
Update in place; the policy id is stable across updates.
Authentication
AuthorizationBearer
A management key (prefixed mgmt_), created in the dashboard under Settings, API keys, Management keys. Distinct from a regular gateway API key, and never used to call models.
Path parameters
policy_id
Request
This endpoint expects an object.
name
description
is_default
strategy
allowed_providers
INTELLIGENT only, optional. If provided, must match the providers of allowed_models (it does not filter independently); returned derived from allowed_models on reads.
allowed_models
priority_order
Response
The updated policy.
id
name
description
strategy
allowed_providers
allowed_models
priority_order
created_at
modified_at
Errors
404
Not Found Error
422
Unprocessable Entity Error