Browse the help center

Create site browser targeting

Creates a browser targeting rule for the specified site, enabling targeting if it was previously disabled.

Reference
POST https://YOUR-NETWORK-DOMAIN/rest-api/site/{siteId}/targeting/browser/create.do

Creates a browser targeting rule for the specified site, enabling targeting if it was previously disabled. Optionally specify a browser version with a relation operator to target specific version ranges (e.g. Chrome >= 80). The browserVersion accepts an integer major version or old-style format like '30.0' (only major version is used). Returns the created targeting rule on success. Requires BROWSER targeting permission.

Path Params

siteId integer required

Unique numeric ID of the site

3001

Form Params

browser string required

Browser identifier (e.g. CHROME, FIREFOX, SAFARI, EDGE)

CHROME

rule string

Targeting rule type — INCLUDE for whitelist or EXCLUDE for blacklist

INCLUDE

relation string

Version comparison operator: LOWER, GREATER, LOWER_EQUAL, GREATER_EQUAL, or EQUAL

GREATER_EQUAL

browserVersion string

Browser major version number (e.g. '80' or '30.0' — only major version is used)

80

Responses

200

Success

400

Invalid targeting value

401

Unauthorized

403

Forbidden

404

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