Skip to main content
PUT
Configure guardrails

Authorizations

x-api-key
string
header
required

Your Trusys API key. Create and manage keys in the Trusys UI under Settings → API Keys.

Include the key on every request:

Path Parameters

applicationId
string<uuid>
required

Unique identifier (UUID) of the application. Returned by POST /applications.

Body

application/json

Guardrails toggle and validator lists.

enable_guard_rails
boolean
required

Master switch for guardrails on this application.

input_validators
object[]

Validators applied to user/model input. Each item is an object with type, on_fail, and optional config.

output_validators
object[]

Validators applied to model output. Each item is an object with type, on_fail, and optional config.

Response

Guardrails configuration saved.

success
boolean
data
object

Guardrails validators applied to application input and output.