Skip to main content
PUT
Update governance configuration

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.