Skip to main content

Create Rule From Search

POST 

/api/v1/rules-v2/from-hyperdx

Create a rule from the SQL a Search view renders to.

The pipeline keeps the detection WHERE and drops the query's FROM, so the stored rule names no source and no hunt. A view that does not compile, or that matches every event, is refused with 422. RBAC: rule:write (data_analyst) -- org_viewer has neither this grant nor the UI button.

Request​

Responses​

Successful Response