Docs

Update Reset Condition

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

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

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.

Replaces a reset condition's fields.

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.
conditionIdGuidRequiredThe reset condition.

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

200 OK. No response body.

Error Codes

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