Skip to main content

Create Rule From Search

POST 

/api/v1/rules/from-hyperdx

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

Wraps the create pipeline with source_type='hyperdx' and auto-derives a unique rule id from the saved-search name, so the caller need not supply one. A view whose SQL the hunt runner could 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