Adds a custom preset with the same values as presetId — a starting point for a publisher whose spec differs a little, or for a second delivery profile.
Reference
POST https://YOUR-NETWORK-DOMAIN/rest-api/video-requirements/presets/{presetId}/copy.do
Adds a custom preset with the same values as presetId — a starting point for a publisher whose spec differs a little, or for a second delivery profile. It is named "… (copy)" unless name is given, and gets an id of its own; the original is not changed. The response is the new preset. Requires the VIDEO_REQUIREMENT_PRESETS admin permission (Admin → Creatives & tags → Video requirement presets).
Path Params
presetIdstringrequired
Id of the preset to duplicate
hulu
Form Params
namestring
Name of the copy, at most 128 characters; "<name> (copy)" when left out
using var client = new HttpClient();
var request = new HttpRequestMessage(new HttpMethod("POST"), "https://YOUR-NETWORK-DOMAIN/rest-api/video-requirements/presets/hulu/copy.do");
request.Headers.Add("X-Api-Key", "YOUR_API_KEY");
request.Content = new FormUrlEncodedContent(new Dictionary<string, string> { ["name"] = "Hulu (Volacity)" });
var response = await client.SendAsync(request);
Console.WriteLine(await response.Content.ReadAsStringAsync());