API referenceGovern policies
PATCH /govern-policies/{policyId}
Path Parameters
policyId*string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/problem+json
curl -X PATCH "https://example.com/govern-policies/string" \ -H "Content-Type: application/json" \ -d '{ "name": "string", "rules": {} }'{ "$schema": "https://example.com/schemas/GovernPolicyView.json", "apiKeyId": "string", "appId": "string", "createdAt": "string", "enabled": true, "enforcement": "string", "environmentId": "string", "model": "string", "name": "string", "policyId": "string", "provider": "string", "rules": { "allowedModels": [ "string" ], "allowedTools": [ "string" ], "defaultModel": "string", "deniedTools": [ "string" ], "maxTokens": 0, "reasoningEffortCap": "string", "reasoningTokensCap": 0, "requireSafetyIdentifier": true, "requireStructuredOutput": true, "serviceTier": "string", "temperatureMax": 0.1 }, "updatedAt": "string", "userId": "string"}apiKeyId?string
appId?string
enabled?boolean
enforcement?string
enforce (mutate to comply, default) | block (reject 422) | warn (record only)
Value in
- "enforce"
- "block"
- "warn"
- ""
environmentId?string
model?string
model prefix; empty = all models
name*string
Length
1 <= length <= 120provider?string
openai | anthropic; empty = all providers
rules*
the structural rule set
userId?string