Guardrail Rules

Create a guardrail rule

Changed on

Creates a guardrail rule with metadata and optional evaluator, plugin, and matching configuration. Rules default to disabled when enabled is omitted.

post/v2/guardrail-rules

Request

  • Base URL
    https://my.orq.ai
  • URL
    https://my.orq.ai/v2/guardrail-rules
  • Auth
    HTTP bearer

Request body

display_namestring required
descriptionstring
project_idstring

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

enabledboolean

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

Example request

{
  "display_name": "Content policy"
}

Response

OK

Changes