Sets whether the zone's rule types must all match (AND) or any one of them is enough (OR).
Reference
POST https://YOUR-NETWORK-DOMAIN/rest-api/zone/{zoneId}/targeting/operation-between-rule-types.do
Sets whether the zone's rule types must all match (AND) or any one of them is enough (OR). Rules of the same type always combine with OR. Requires UPDATE permission on the zone's site, MANAGE_SUPPLY_PRE_TARGETING and MANAGE_OPERATION_BETWEEN_TARGETING_RULE_TYPES user permissions.
Path Params
zoneIdintegerrequired
Unique numeric ID of the zone
200
Form Params
operatorstringrequired
AND — every rule type must match; OR — any one rule type is enough
AND
Responses
200
Success — the response carries the saved operationBetweenRuleTypes
using var client = new HttpClient();
var request = new HttpRequestMessage(new HttpMethod("POST"), "https://YOUR-NETWORK-DOMAIN/rest-api/zone/200/targeting/operation-between-rule-types.do");
request.Headers.Add("X-Api-Key", "YOUR_API_KEY");
request.Content = new FormUrlEncodedContent(new Dictionary<string, string> { ["operator"] = "AND" });
var response = await client.SendAsync(request);
Console.WriteLine(await response.Content.ReadAsStringAsync());