Swaps one stale location rule for a rule naming a place the geo database knows, with the same include or exclude and the same entity, and removes the stale rule; both changes are written to the action log.
Reference
POST https://YOUR-NETWORK-DOMAIN/rest-api/targeting/stale-locations/replace.do
Swaps one stale location rule for a rule naming a place the geo database knows, with the same include or exclude and the same entity, and removes the stale rule; both changes are written to the action log. Region and city are optional and checked like location targeting create. When the entity already has that rule, only the stale one is removed and 'alreadyPresent' is true. Country rules cannot be replaced; remove them instead.
Form Params
targetIdintegerrequired
Id of the stale location rule
8012
countryCodestringrequired
ISO 3166-1 alpha-2 country code of the new place
US
regionNamestring
Region of the new place, as GET /rest-api/targeting/country/region/values.do lists it
Nevada
cityNamestring
City of the new place, as GET /rest-api/targeting/country/region/city/values.do lists it