Permanently deletes one or more third-party tracking event pixels by their IDs for the specified entity. The request body must contain a JSON array of numeric event IDs to delete (obtainable from the GET tracking-events endpoint). The caller must have update permissions on the entity. Returns a JSON object with a 'success' boolean indicating whether the deletion succeeded.
Path Params
idintegerrequired
The unique numeric identifier of the entity to delete third-party tracking events from
5001
Body
A JSON body. An example, built from the field definitions:
[
1
]
Responses
200
Third-party tracking events deleted successfully
400
Entity is not a video placement
401
Authentication error
403
Not enough permissions
404
One of the ids is not a tracking event of this entity; the message names it and nothing is deleted
using var client = new HttpClient();
var request = new HttpRequestMessage(new HttpMethod("DELETE"), "https://YOUR-NETWORK-DOMAIN/rest-api/placement/5001/vast/tracking-events.do");
request.Headers.Add("X-Api-Key", "YOUR_API_KEY");
request.Content = new StringContent("[1]", Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
Console.WriteLine(await response.Content.ReadAsStringAsync());