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
- 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)