List zones for site
Returns all non-deleted zones belonging to the specified site.
https://YOUR-NETWORK-DOMAIN/rest-api/sites/{siteId}/zones.do Returns all non-deleted zones belonging to the specified site. Requires ALL or SHARED level VIEW permission on INVENTORY. If the site does not exist or is deleted, an empty list is returned. Each zone in the response includes its ID and name. Zones are ordered by id and can be narrowed by any on/off setting or relation flag (filter[...]) and trimmed to the fields named in fields.
Path Params
siteId integer required
Unique numeric ID of the parent site
5001 Query Params
fields array<string>
Return only these fields of each entity, comma-separated; id is always kept. A requested field no returned row carries is named in the X-Ignored-Fields response header
id,name,active filter object
Keep only entities matching every key, e.g. filter[cpaOptimization]=true&filter[hasLimit]=true. Keys are the entity's on/off settings (active, enableTargeting, cpaOptimization, alwaysRedirect, ...) and a has<Relation> flag for each setting kept in rows of its own (hasLimit, hasPricing, hasFrequencyCapping, hasTrackingCode, hasPriceAdjustmentRules, hasLabels, hasBanners, ...), true when the relation holds a row; hasCapping, hasLimits and hasTargetingRules group the relations of their kind. An unknown key is a 400 that lists every valid key for the list.
{"hasLimits": "true"} Responses
200
Zones returned successfully
400
Bad request — invalid or missing parameters
401
Authentication error
403
Forbidden — insufficient permissions
404
Not found — resource does not exist