Write a guardrail policy (admin)
PUT
/api/guardrails/policies/{name}Authorization
bearerAuth AuthorizationBearer <token>
API key present in auth.source (or resolved by an AuthResolver).
In: header
Path Parameters
name*string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X PUT "https://example.com/api/guardrails/policies/string" \ -H "Content-Type: application/json" \ -d '{ "source": "string" }'{ "ok": true, "committed": true, "version": "string"}