Adds an e-mail address that receives a copy of the caller's notifications, as the console's 'More recipients' list does.
Reference
POST https://YOUR-NETWORK-DOMAIN/rest-api/notification-settings/recipients.do
Adds an e-mail address that receives a copy of the caller's notifications, as the console's 'More recipients' list does. An address already on the list is not added twice.
Form Params
emailstring
E-mail address to add
ops@northwind.example
Responses
200
The settings after the change, in the shape of the GET
400
email is missing or not an e-mail address
401
Authentication error
403
The role skips all notifications, or has no view rights on campaigns or inventory
using var client = new HttpClient();
var request = new HttpRequestMessage(new HttpMethod("POST"), "https://YOUR-NETWORK-DOMAIN/rest-api/notification-settings/recipients.do");
request.Headers.Add("X-Api-Key", "YOUR_API_KEY");
request.Content = new FormUrlEncodedContent(new Dictionary<string, string> { ["email"] = "ops@northwind.example" });
var response = await client.SendAsync(request);
Console.WriteLine(await response.Content.ReadAsStringAsync());