Skip to main content
PUT
BatchUpdateRules

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
rules
rules are limited 1000 rules at a time · object[]
required
validateOnly
boolean

If validate_only is true, the request will only validate the request and not save the rules.

overrideExpressionValidation
boolean

Discouraged escape hatch for saving rules whose expression cannot be fully validated server-side. When true:

  • Per-asset expression validation errors (e.g. channel not present on the in-scope asset) are returned in validation_results for visibility but do not block the save.
  • If the rule's UDF/calculated-channel inlining cannot resolve types (typically because the referenced channels haven't been ingested yet, or there are too many distinct identifiers for the type-inference budget) the rule is still persisted, but its is_live_evaluation_enabled is forced to false. Live alerts will skip it; report generation and on-demand EvaluateRules calls still work because they re-resolve types at run time. To bring such a rule back online, fix the underlying problem (ingest the channels, simplify the expression, etc.) and reissue an update with is_live_evaluation_enabled = true.

Marked deprecated = true because new integrations should validate input before submitting; existing SDK call sites that rely on this flag continue to work.

Response

A successful response.

success
boolean
required
rulesCreatedCount
integer<int32>
required

The total number of rules created in the request. If validate_only is true, this will indicate how many rules would have been created.

rulesUpdatedCount
integer<int32>
required

The total number of rules updated in the request. If validate_only is true, this will indicate how many rules would have been updated.

validateOnly
boolean
required

This will be true if the request only validated the request and did not save the rules.

validationResults
One ValidationResult per rule in the request will be returned · object[]
required
createdRuleIdentifiers
object[]
required

The created rule id, name, version, and client key.