Adds a publisher video spec to the network's list, for site editors to apply with video-requirements/apply-preset.
Reference
POST https://YOUR-NETWORK-DOMAIN/rest-api/video-requirements/presets.do
Adds a publisher video spec to the network's list, for site editors to apply with video-requirements/apply-preset. name and at least one requirement are needed; id is made from name and profile unless given. Invalid values come back per field in errors (requirements.durations[0], name, asOf, …). The response is the stored preset; fields that were sent but not applied are listed in 'ignoredFields', each with its reason in 'ignoredFieldReasons'. Requires the VIDEO_REQUIREMENT_PRESETS admin permission (Admin → Creatives & tags → Video requirement presets).
Body
A JSON body. An example, built from the field definitions:
using var client = new HttpClient();
var request = new HttpRequestMessage(new HttpMethod("POST"), "https://YOUR-NETWORK-DOMAIN/rest-api/video-requirements/presets.do");
request.Headers.Add("X-Api-Key", "YOUR_API_KEY");
request.Content = new StringContent("{\"id\":\"acme-tv\",\"name\":\"Acme TV\",\"profile\":\"Mezzanine\",\"source\":\"https://ads.acme.tv/specs/video\"}", Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
Console.WriteLine(await response.Content.ReadAsStringAsync());