Preview Rule
POST/api/v1/rules/preview
Compile a condition and check it exactly as a save would, writing nothing.
Runs the creation pipeline of POST /rules (compile, parse, the forbidden-keyword
and column checks, the matches-everything check and the alert-volume preview) under the
same org fence, and stops before the save. A condition the save would refuse comes back
with 200 and its reasons in sql_errors or matches_everything, so a builder can
show them as the author edits. A body that is not a condition at all is 422.
Request
Responses
- 200
- 401
- 403
- 422
- default
Successful Response
No valid session: the credentials are missing, invalid or expired, or the account behind them is disabled or blocked
Refused: the session lacks the action this route checks, or its account must replace an issued password first. A SCIM route answers a refused action in the RFC 7644 error envelope
Validation Error
Problem details (RFC 9457)