Skip to main content

Validate Rule Sql

POST 

/api/v1/rules-v2/validate

Validate a detection query (SELECT ... FROM ...) without creating a rule.

FROM {{source}} stands in for the table the hunt names. The check fills it with the deployment's data database and landing table so the statement parses, and does not plan that stand-in table: its columns are not the source's. A named table is planned, and the response lists any syntax errors or validation issues.

Request​

Responses​

Successful Response