Create Rule Public Api

Create a rule in your organization.

One endpoint handles all supported rule_type values; the shape of content
must match the type (see request examples in this operation).

rule_typecontent formatNotes
sigmaYAML string or parsed Sigma objectMetadata can live in the YAML.
atomic_sqlsql_query, optional entities, levelSigma migration target.
scheduled_sqlquery, schedule, entities, optional throttleOrg placeholder optional.
signal_combinationquery, schedule, descriptionInternal portal org only.

For scheduled_sql, the organization_id = ? placeholder is optional — per-org
scoping is applied at execution (the placeholder is still replaced per tenant when
present). signal_combination queries must contain organization_id = ?.

Organization ID: Omit organization_id to create under your session organization.
If provided, it must match your session — cross-tenant creates are rejected.
Global rules are created by signing in as NEBULOCK_INTERNAL_PORTAL_ORG_ID;
the legacy "*" marker is not accepted.

Status: Use inactive while iterating; set active when ready to deploy.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
enum
required
Allowed:
content
required

Rule title (will be populated from content if not provided)

Rule description (will be populated from content if not provided)

enum

Rule status (will be mapped from Sigma status if not provided)


Rule status. See RULE_LIFECYCLE.md for state transition diagram.

0 to 100

Rule severity (0-100)

tags
array of strings

Rule tags

Tags
array | null

Detection categories. None = caller omitted the field; the service layer coerces to [] before persisting so the DB never stores NULL.

array | null

Data sources. None = caller omitted the field; the service layer coerces to [] before persisting so the DB never stores NULL.

User ID

object | null

Additional rule details

Origin of the rule

Organization ID

Headers
string
required

Your API Key ID

string

Your API Key Secret

Responses

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json