Configure guardrails
Enables or disables guardrails and sets input/output validators for an application.
input_validators and output_validators are arrays of objects. Each entry requires:
type— validator id fromGET /guardrails/validatorson_fail— action id from the catalogactionslist (what Trusys does when the validator fails:mask,encrypt,filter,fail,ignore, orfixfor PII only)config— optional; structure depends ontype(see catalogvalidators[].configfor the template)
Not every on_fail action applies to every validator — the catalog actions[].validators array lists compatible validator types.
Authorizations
Your Trusys API key. Create and manage keys in the Trusys UI under Settings → API Keys.
Include the key on every request:
x-api-key: <your-api-key>Path Parameters
Unique identifier (UUID) of the application. Returned by POST /applications.
Body
Guardrails toggle and validator lists.
Master switch for guardrails on this application.
Validators applied to user/model input. Each item is an object with type, on_fail, and optional config.
Validators applied to model output. Each item is an object with type, on_fail, and optional config.