Skip to main content
PUT
/
admin
/
governance-config
Update governance configuration
curl --request PUT \
  --url https://{organization_id}.platform.barndoor.ai/api/llm-gateway/admin/governance-config \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "require_pricing_for_mappings": true
}
'
{
  "require_pricing_for_mappings": true
}

Authorizations

Authorization
string
header
required

JWT obtained through Barndoor's authentication flow. Pass the token verbatim in Authorization: Bearer <token>. Use the Barndoor SDK's loginInteractive() helper to obtain a token in scripts and notebooks.

Body

application/json
require_pricing_for_mappings
boolean

When true, the gateway refuses to enable a model route whose upstream_model has no pricing configured. Use this to guarantee every billable request has a known unit cost.

Response

200 - application/json

The updated configuration

require_pricing_for_mappings
boolean

When true, the gateway refuses to enable a model route whose upstream_model has no pricing configured. Use this to guarantee every billable request has a known unit cost.