Browse the help center

Add rule matches to rule

Adds new rule match entries to an existing rule identified by its numeric ID.

Reference
POST https://YOUR-NETWORK-DOMAIN/rest-api/rule/{ruleId}/matches/add.do

Adds new rule match entries to an existing rule identified by its numeric ID. The request body must be a JSON array of rule match objects, each containing category IDs (AdvertisingCategory for CAMPAIGN rules, PublisherCategory for INVENTORY rules), label IDs, a logical operator (AND/OR), and an include/exclude flag. Duplicate entries (matching existing rule matches or duplicates within the request) are rejected with validation errors. Returns a JSON object with 'success: true' on completion, or validation error details. Requires authentication and UPDATE permission on the RULES static ACL identity.

Path Params

ruleId integer required

The unique numeric identifier of the rule to add matches to

200

Body

A JSON body. An example, built from the field definitions:

[
  {
    "id": "301",
    "include": "true",
    "operator": "AND"
  }
]

Responses

200

Rule matches added successfully

400

Bad request — invalid or missing parameters

401

Unauthorized - authentication error

403

Forbidden - insufficient permissions

404

Rule not found

500

Internal server error

Please disable Adblock
Are you using adblock? Disable it and reload the page to proceed to the destination page.

A registration has already been submitted from this page. Please try again in 10 minutes.