Adds an e-mail address the scheduled report is mailed to.
Reference
POST https://YOUR-NETWORK-DOMAIN/rest-api/saved-reports/{id}/recipients.do
Adds an e-mail address the scheduled report is mailed to. Only listed addresses receive it — the caller is not added implicitly. An address already on the list is not added twice.
Path Params
idintegerrequired
Saved report id
42
Form Params
emailstring
E-mail address
reports@northwind.example
Responses
200
The saved report with its recipients, in the shape of the GET
using var client = new HttpClient();
var request = new HttpRequestMessage(new HttpMethod("POST"), "https://YOUR-NETWORK-DOMAIN/rest-api/saved-reports/42/recipients.do");
request.Headers.Add("X-Api-Key", "YOUR_API_KEY");
request.Content = new FormUrlEncodedContent(new Dictionary<string, string> { ["email"] = "reports@northwind.example" });
var response = await client.SendAsync(request);
Console.WriteLine(await response.Content.ReadAsStringAsync());