Docs

Add Reset Condition

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

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

Required Tokens

FieldTypeRequiredDescription
BearerAuthorization: Bearer <api-key>OptionalYour API key. Pass it as the Bearer token on every request.
Event tokenx-Event-TokenOptionalRun **Get Tokens** in the Authorization folder, or call `GET /Events/{eventId}/authorize` manually.

Adds a reset condition: what restarts the rule's clock.

Requires EventSettings permission on the event.
Event scoping: This endpoint does not include {eventId} in the URL. The event is determined automatically from your x-Event-Token.

Path Parameters

FieldTypeRequiredDescription
ruleSetIdGuidRequiredThe rule set.
ruleIdGuidRequiredThe rule.

Request Body

FieldTypeRequiredDescription
resetTypestringRequired`ScheduleGap`, `BlockType` or `CalendarPeriod`.
blockTypeIdGuid?OptionalFor `BlockType`.
minDurationdecimal?OptionalMinimum gap or block length.
durationUnitstringOptional`Hours`, `Minutes` or `Days`.
periodstringOptional`Day`, `Week` or `Month`, for `CalendarPeriod`.
periodStartDaystringOptionalDay the period starts on.
thresholdOverridesarrayOptional`{ ruleThresholdId, threshold, thresholdUnit }`: per-threshold values after this reset.

Response

201 Created. No response body.

Error Codes

HTTP StatusDescription
400Invalid arguments.
404Rule set, rule or block type not found.