Browse the help center

Add rules group to zone

Creates a new targeting rules group and associates it with the specified zone.

Reference
POST https://YOUR-NETWORK-DOMAIN/rest-api/rules/zone/{zoneId}/add.do

Creates a new targeting rules group and associates it with the specified zone. A rules group bundles one or more individual rules together with a logical operator (AND/OR) and an include/exclude flag that determines whether matching traffic is allowed or blocked. The response JSON contains 'success: true' and a 'ruleGroupId' field with the newly created group's ID. Requires UPDATE permission on the zone's parent site inventory share and INVENTORY_RULES_MANAGEMENT permission. POST only: a GET answers 405, since a state change over GET can be triggered by a prefetch or an embedded link.

Path Params

zoneId integer required

The unique numeric identifier of the zone to add the rules group to

6001

Form Params

ruleIds array<integer> required

Array of rule IDs to include in the new rules group (at least one required)

200

include boolean required

Whether the rules group is an inclusion (true) or exclusion (false) filter

true

operator string required

Logical operator for combining rules within the group: AND (all must match) or OR (any must match)

AND

Responses

200

Rules group added successfully

400

Bad request - ruleIds is empty or names a rule that does not exist

401

Unauthorized - authentication error

403

Forbidden - insufficient permissions

404

Zone not found

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.