Docs

Update Reset Condition

PUT /rule-sets/{ruleSetId}/rules/{ruleId}/reset-conditions/{conditionId}

PUT/rule-sets/{ruleSetId}/rules/{ruleId}/reset-conditions/{conditionId}

Replaces a reset condition's fields. 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
conditionIduuidRequired

Request Body

FieldTypeRequiredDescription
resetTypestringOptional
blockTypeIduuidOptional
minDurationnumberOptional
durationUnitstringOptional
periodstringOptional
periodStartDaystringOptional
thresholdOverridesUpdateResetConditionRequestThresholdOverrideRequest[]Optional

UpdateResetConditionRequestThresholdOverrideRequest

FieldTypeDescription
ruleThresholdIduuid
thresholdnumber
thresholdUnitstring| null