Skip to main content

Get Rules

GET 

/rulesets/:rulesetId/rules

Returns a list of rules in a ruleset; available as an Add-On Module

Request

Path Parameters

    rulesetId stringrequired

    Ruleset Identifier

Query Parameters

    siteId string

    Site Identifier

    next string

    Next page of results token

    limit string

    Limit Results

    Default value: 10

Responses

200 OK

Response Headers

  • Access-Control-Allow-Origin

    string

  • Access-Control-Allow-Methods

    string

  • Access-Control-Allow-Headers

    string

Schema

    next string

    Next page of results token

    rules

    object[]

    List of rules

  • Array [

  • ruleId string

    Workflow to start on matching of conditions

    priority number

    Rule priority

    description string

    Ruleset description

    workflowId string

    Workflow to start on matching of conditions

    status RulesetStatus (string)

    Status of the Ruleset

    Possible values: [ACTIVE, INACTIVE]

    conditions

    object

    must

    object[]

    List of rule conditions

  • Array [

  • attribute RuleConditionAttribute (string)

    Rule condition attribute (deprecated, use Criterion)

    Possible values: [TEXT, CONTENT_TYPE, BARCODE, FIELD, ATTRIBUTE]

    criterion RuleConditionCriterion (string)

    Rule condition attribute

    Possible values: [TEXT, CONTENT_TYPE, BARCODE, FIELD, ATTRIBUTE]

    attributeKey string

    Rule attribute key (only required for ATTRIBUTE criterion)

    fieldName string

    Rule field name (only required for FIELD criterion)

    value string

    Rule condition value

    operation RuleConditionOperation (string)

    Rule condition attribute

    Possible values: [EQ, CONTAINS]

  • ]

  • ]

Loading...