v1

latestOpenAPI 3.1.02026-07-2616459400.5 KB
Rules

Validate a rule expression

Validates a rule expression without saving. Uses expr.Compile() to verify syntax.

post/rules/validate

Request body

expressionstring required

Rule expression to validate.

Example request

{
  "expression": "Contains(from_domain, \"example.com\") && size > 1024"
}

Response

Validation result.

validboolean
errorstring

Present only when valid is false.