Skip to main content
PUT
UpdateRule

Authorizations

Authorization
string
header
required

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

Body

application/json

UpdateRuleRequest is used to create or update a rule. If the rule_id or client_key is provided, the rule will be updated. If not, a new rule will be created.

UpdateRuleRequest is used to create or update a rule. If the rule_id or client_key is provided, the rule will be updated. If not, a new rule will be created.

name
string
required
description
string
required
conditions
object[]
required
metadata
object[]
required
ruleId
string
assetId
string

Deprecated - use asset_configuration instead.

isEnabled
boolean

Deprecated - use DeleteRule instead.

organizationId
string
versionNotes
string
clientKey
string
assetConfiguration
object
contextualChannels
object
isExternal
boolean
isArchived
boolean
isLiveEvaluationEnabled
boolean

If set to true then this rule will be evaluated on live data, otherwise live rule evaluation will be disabled. This rule can still be used, however, in report generation. If this value is null then the original value is preserved.

This is a request, not a guarantee. When combined with BatchUpdateRulesRequest.override_expression_validation = true, a true value here can be silently overridden to false if UDF inlining fails (the rule is still persisted, just with live evaluation disabled). Re-send this request with the underlying issue resolved -- e.g. the referenced channels populated, or the expression simplified -- to flip it back on.

Response

A successful response.

ruleId
string
required