Browse the help center

Zones API endpoints

Endpoint reference for the Zones tag (5 endpoints): Zone management

Reference network manager admin

Zone management. 5 endpoints, generated from the OpenAPI spec. Authentication, the response envelope, pagination and error codes are shared by all endpoints — see REST API overview. Parameters marked form go in an application/x-www-form-urlencoded request body.

GET /rest-api/zones/{zoneId}.do

Request examples

Get zone by ID.

ParameterInTypeRequiredDescription
zoneIdpathintegeryesUnique numeric ID of the zone

Responses: 200 — Zone properties returned successfully · 404 — Zone with the given ID was not found or is deleted. Errors follow the shared conventions.

POST /rest-api/zones/{zoneId}/copy.do

Request examples

Copy zone.

ParameterInTypeRequiredDescription
zoneIdpathintegeryesID of the zone to copy
siteIdformintegeryesID of the site to copy the zone into (may be the zone’s own site)
nameformstringnoName for the copy (at most 500 characters). With count above 1 the later copies are named ‘<name> 2’, ‘<name> 3’… Omit to keep the source’s name (with ‘_copy’ appended when the site already has a zone of that name).
keepBannersLinkedformbooleannoWhether the copied placements keep the banners linked to the originals
countformintegernoNumber of copies to create, 1 to 20

Responses: 200 — Zone copied · 404 — Zone or site not found or deleted. Errors follow the shared conventions.

POST /rest-api/zones/{zoneId}/delete.do

Request examples

Delete zone.

ParameterInTypeRequiredDescription
zoneIdpathintegeryesUnique numeric ID of the zone to delete

Responses: 200 — Zone deleted successfully · 404 — No zone with this id, or the zone is already deleted · 500 — Internal server error during deletion. Errors follow the shared conventions.

GET /rest-api/zones/{zoneId}/placements.do

Request examples

List zone placements.

ParameterInTypeRequiredDescription
zoneIdpathintegeryesUnique numeric ID of the zone whose placements to list

Responses: 200 — Placements returned successfully · 404 — Zone with the given ID was not found or is deleted. Errors follow the shared conventions.

POST /rest-api/zones/update.do

Request examples

Create or update zone.

ParameterInTypeRequiredDescription
idformintegernoID of the zone to update — omit (or 0) to create a new zone
siteIdformintegernoID of the site the zone belongs to — needed when creating; on update, moves the zone to this site
activeformbooleannoWhether the zone is active
descriptionformstringnoZone description
enableRulesformbooleannoWhether rule-based optimization is enabled for this zone
enableTargetingformbooleannoEnable pretargeting rules for this zone
nameformstringnoZone name
operationBetweenRuleTypesformstringnoLogical operator between different targeting rule types (AND, OR) Values: AND, OR.

Responses: 200 — Zone created or updated successfully · 404 — Associated site not found. Errors follow the shared conventions.

Related pages

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.