Creates a new zone or updates an existing one under a publisher site.
Reference
POST https://YOUR-NETWORK-DOMAIN/rest-api/zones/update.do
Creates a new zone or updates an existing one under a publisher site. To update, provide the zone's numeric ID; to create, omit the ID. The zone name is mandatory, while description is optional. For new zones, a valid siteId is required to specify which site the zone belongs to, and the caller needs INVENTORY CREATE; on an update, a different siteId moves the zone and needs UPDATE on both the site it leaves and the site it joins; its placements keep their keys, so their published ad tags keep working. If the user has the MANAGE_ZONES_ACTIVE_STATUS permission, the zone's active status can also be toggled. Activation and deactivation events are logged separately. Parameters that were sent but not applied are listed in 'ignoredFields', each with its reason in 'ignoredFieldReasons'.
Form Params
idinteger
ID of the zone to update — omit (or 0) to create a new zone
3001
siteIdinteger
ID of the site the zone belongs to — needed when creating; on update, moves the zone to this site
2001
activeboolean
Whether the zone is active
true
descriptionstring
Zone description
Groups all content-area placements
enableRulesboolean
Whether rule-based optimization is enabled for this zone
false
enableTargetingboolean
Enable pretargeting rules for this zone
true
namestring
Zone name
Main Content Zone
operationBetweenRuleTypesstring
Logical operator between different targeting rule types (AND, OR)