Skip to main content
PUT
Update governance configuration

Authorizations

Authorization
string
header
required

An access token from Barndoor's identity provider, sent as Authorization: Bearer <token>. Use a service-account token from the OAuth 2.0 client-credentials grant for scripts and CI, or a signed-in user's token. The caller needs the admin role in the organization. Gateway API keys (bd-...) are not accepted here.

Body

application/json

Organization-wide LLM Gateway settings. PUT replaces all of them: omitted fields reset to their defaults.

require_pricing_for_mappings
boolean
required

Whether every enabled model route must match a pricing rule. Defaults to false.

default_model_access
enum<string>

What happens to models that no model access policy mentions.

Available options:
allow,
deny
require_routing_policy
boolean

Whether callers must call a routing policy alias rather than naming a model directly. Defaults to false.

Response

OK

Organization-wide LLM Gateway settings. PUT replaces all of them: omitted fields reset to their defaults.

require_pricing_for_mappings
boolean
required

Whether every enabled model route must match a pricing rule. Defaults to false.

default_model_access
enum<string>

What happens to models that no model access policy mentions.

Available options:
allow,
deny
require_routing_policy
boolean

Whether callers must call a routing policy alias rather than naming a model directly. Defaults to false.