v1

latestOpenAPI 3.1.0Apache 2.02026-07-264001921002.3 KB
Circuit Breaker

Update circuit breaker policy

Replaces a circuit breaker policy by name. The name field in the request body must match the URL parameter or be omitted. Changes take effect immediately in the running gateway.

put/api/circuit-breaker/policies/{name}

Path parameters

namestring required

Name of the policy to update.

Request body

namestring required

Unique name for this policy.

enabledboolean

When false, the policy is registered but all hooks skip it.

primary_providerstring required

Provider to monitor (e.g. azure, openai).

primary_modelstring required

Model name as it appears in requests (e.g. gpt-4o-ptu).

primary_key_idsstring[]

API key UUIDs to track individually. Each key gets its own sub-circuit. The main circuit opens only when all listed keys have tripped. Leave empty to use a single shared circuit for all keys serving this provider+model.

fallback_providerstring required

Provider to route to when the circuit is open.

fallback_modelstring required

Model to request from the fallback provider when the circuit is open.

cooldown_headerstring

Response header whose value (in milliseconds) overrides default_cooldown. Falls back to default_cooldown when the header is absent or unparsable.

Response

Policy updated

namestring required

Unique name for this policy.

enabledboolean

When false, the policy is registered but all hooks skip it.

primary_providerstring required

Provider to monitor (e.g. azure, openai).

primary_modelstring required

Model name as it appears in requests (e.g. gpt-4o-ptu).

primary_key_idsstring[]

API key UUIDs to track individually. Each key gets its own sub-circuit. The main circuit opens only when all listed keys have tripped. Leave empty to use a single shared circuit for all keys serving this provider+model.

fallback_providerstring required

Provider to route to when the circuit is open.

fallback_modelstring required

Model to request from the fallback provider when the circuit is open.

cooldown_headerstring

Response header whose value (in milliseconds) overrides default_cooldown. Falls back to default_cooldown when the header is absent or unparsable.