Skip to main content
Update one workspace routing section

Authorizations

Authorization
string
header
required

BoxRouter API key; never an upstream provider key.

Headers

If-Match
string

Optional opaque ETag for the exact section named in the request body. When sent, it must match the section's current token or the call fails 412 routing_settings_stale. When omitted, the named fields are written to the current section.

Minimum string length: 1
Idempotency-Key
string

Optional for this operation. Preserve the same stable identifier when retrying an uncertain response; never reuse it for new work. If omitted where allowed, Cloud generates a request-scoped key that cannot reconcile a later retry. Do not include credentials or payloads. Stable identifier for one logical mutation.

Required string length: 1 - 128

Body

application/json

Routing update. Fields omitted from routing keep their stored values; the merged section is validated as a complete Routing section before it is written.

section
string
required
Allowed value: "routing"
routing
object
required

Partial Routing section: send only the fields to change. Every omitted field keeps its stored value. The merged section is validated as a complete Routing section.

Response

Current complete settings including updated section validator.

mode
enum<string>
required
Available options:
automatic,
cheapest,
fastest,
custom
provider_order
string[]
required

Stored in every mode; newly supported providers append in deployment order and start enabled.

Required string length: 1 - 64
Pattern: ^[a-z][a-z0-9-]*$
excluded_providers
string[]
required

Hard deny-list; connecting a key does not clear its provider's exclusion.

Required string length: 1 - 64
Pattern: ^[a-z][a-z0-9-]*$
allow_fallbacks
boolean
required

After a definite pre-create refusal, try only later frozen routes in the same Prioritized, Credits or Fallback group; never retry unknown outcomes or created jobs.

prevent_overrides
boolean
default:false
required

Reject requests containing preferences.order, preferences.sort or preferences.allow_fallbacks even when identical to the default; hard request restrictions still narrow.

provider_funding
object
required
section_etags
object
required

Opaque independent Routing and provider validators, never a document-wide ETag.