Browse the help center

Copy zone

Copies a zone with its placements into a site, as the console's copy (clipboard) does: the zone's settings and targeting come along, and every placement is copied into the new zone.

Reference
POST https://YOUR-NETWORK-DOMAIN/rest-api/zones/{zoneId}/copy.do

Copies a zone with its placements into a site, as the console's copy (clipboard) does: the zone's settings and targeting come along, and every placement is copied into the new zone. With keepBannersLinked (default true) each copied placement keeps the banners its original is linked to — those the caller may see — plus the ones its auto-linking rules pick. Answers 'newItemIds' (the new zone ids) and 'copies': per new zone its id, name, whether it starts active (a copy keeps the source zone's on/off state) and its 'placements' (id, name, active). A copy is named after the optional 'name' — the first copy takes it as given, later ones get ' 2', ' 3'... appended — or, without it, '<name>_copy' / '<name>_copy(N)' when the site already has a zone of the source's name. Requires access to the source zone's site and UPDATE on the target site.

Path Params

zoneId integer required

ID of the zone to copy

3001

Form Params

siteId integer required

ID of the site to copy the zone into (may be the zone's own site)

2001

name string

Name 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).

Homepage - mobile

keepBannersLinked boolean

Whether the copied placements keep the banners linked to the originals

true

count integer

Number of copies to create, 1 to 20

1

Responses

200

Zone copied

400

count outside 1 to 20 or name too long

401

Authentication error

403

No access to the source zone's site or no UPDATE on the target site

404

Zone or site not found or deleted

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.