Skip to main content
POST
Core - Create guardrail rule

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
display_name
string
required
description
string
project_id
string

Optional project scope. Omit for a workspace-wide rule.

enabled
boolean

Whether the rule is active. Defaults to false when omitted.

expression
object
guardrails
object[]
plugins
object[]

Response

200 - application/json

OK

guardrail_rule
object
required