Disables all piggyback tracking pixels associated with the specified site so they stop firing during ad serving.
Reference
POST https://YOUR-NETWORK-DOMAIN/rest-api/piggyback/site/disable.do
Disables all piggyback tracking pixels associated with the specified site so they stop firing during ad serving. This is a bulk operation that sets the piggyback status to DISABLED for every piggyback attached to the site. The caller must have update permissions on the site. Returns a JSON object with a 'success' boolean.
Form Params
idintegerrequired
The unique numeric identifier of the site whose piggyback pixels should be disabled
3001
Responses
200
Site piggybacks disabled successfully
400
Bad request - id is missing
401
Unauthorized - authentication error
403
Forbidden - no update rights on the site, or the Piggyback Pixel Tracking permission is not enabled
using var client = new HttpClient();
var request = new HttpRequestMessage(new HttpMethod("POST"), "https://YOUR-NETWORK-DOMAIN/rest-api/piggyback/site/disable.do");
request.Headers.Add("X-Api-Key", "YOUR_API_KEY");
request.Content = new FormUrlEncodedContent(new Dictionary<string, string> { ["id"] = "3001" });
var response = await client.SendAsync(request);
Console.WriteLine(await response.Content.ReadAsStringAsync());