Docs

Add Reset Condition

POST /rule-sets/{ruleSetId}/rules/{ruleId}/reset-conditions

POST/rule-sets/{ruleSetId}/rules/{ruleId}/reset-conditions

Adds a reset condition to a rule: what restarts the rule's clock. resetType is ScheduleGap, BlockType (with blockTypeId) or CalendarPeriod (with period Day, Week or Month and periodStartDay); minDuration with durationUnit (Hours, Minutes or Days) gives the minimum gap or block length. thresholdOverrides give per-threshold values after this reset. Needs the event settings permission.

Path Parameters

FieldTypeRequiredDescription
ruleSetIduuidRequired
ruleIduuidRequired

Request Body

FieldTypeRequiredDescription
resetTypestringOptional
blockTypeIduuidOptional
minDurationnumberOptional
durationUnitstringOptional
periodstringOptional
periodStartDaystringOptional
thresholdOverridesCreateResetConditionRequestThresholdOverrideRequest[]Optional

CreateResetConditionRequestThresholdOverrideRequest

FieldTypeDescription
ruleThresholdIduuid
thresholdnumber
thresholdUnitstring| null