Docs

Get Rule Set

GET /rule-sets/{ruleSetId}

GET/rule-sets/{ruleSetId}

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.

Returns one rule set with its rules, thresholds and reset conditions.

Requires EventBasicAccess 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.

Response Fields

FieldTypeDescription
idGuidThe rule set.
namestringName.
resourceTypeIdsGuid[]Types that use it by default.
rulesarray`{ id, name, description, priority, isActive, conditionType, trackedBlockType: { id, name }, windowStart, windowEnd, resultingStateId, daysOfWeek[], annualDates[], thresholds[], resetConditions[] }`.
rules[].annualDatesstring[]Annual dates, `MM-DD` or `MM-{1\
rules[].thresholdsarray`{ id, order, threshold, thresholdUnit, operator, resultingState: { id, name } }`.
rules[].resetConditionsarray`{ id, resetType, blockType: { id, name }, minDuration, durationUnit, period, periodStartDay, thresholdOverrides: [{ ruleThresholdId, threshold, thresholdUnit }] }`.

Error Codes

HTTP StatusDescription
404Rule set not found.