Activates the targeting rules engine for the specified zone, allowing its configured rule groups to take effect during ad serving.
Reference
POST https://YOUR-NETWORK-DOMAIN/rest-api/rules/zone/{zoneId}/enable.do
Activates the targeting rules engine for the specified zone, allowing its configured rule groups to take effect during ad serving. The zone is identified by its numeric ID in the URL path. The response is a JSON object with 'success: true' on success. Requires the caller to have UPDATE permission on the zone's parent site inventory share and INVENTORY_RULES_MANAGEMENT permission. The action is logged for audit purposes. POST only: a GET answers 405, since a state change over GET can be triggered by a prefetch or an embedded link.
Path Params
zoneIdintegerrequired
The unique numeric identifier of the zone whose targeting rules should be enabled
using var client = new HttpClient();
var request = new HttpRequestMessage(new HttpMethod("POST"), "https://YOUR-NETWORK-DOMAIN/rest-api/rules/zone/6001/enable.do");
request.Headers.Add("X-Api-Key", "YOUR_API_KEY");
var response = await client.SendAsync(request);
Console.WriteLine(await response.Content.ReadAsStringAsync());