Browse the help center

Get site rules

Retrieves all targeting rules groups currently assigned to the specified site.

Reference
GET https://YOUR-NETWORK-DOMAIN/rest-api/rules/site/{siteId}/get.do

Retrieves all targeting rules groups currently assigned to the specified site. The response JSON contains 'success: true', a 'ruleGroups' array with each group's ID, rules, operator, and include/exclude flag, and 'rulesEnabled'. The groups are listed whether or not rules are switched on for the site; they take effect only while rulesEnabled is true.

Path Params

siteId integer required

The unique numeric identifier of the site whose rules groups should be retrieved

3001

Responses

200

Successfully retrieved rules

400

Bad request — invalid or missing parameters

401

Unauthorized - authentication error

403

Forbidden - insufficient permissions

404

Site 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.