Removes one e-mail address from the saved report's recipients, or every recipient when no email is given. With no recipients left, the scheduled report is mailed to nobody.
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
400
Bad request — invalid or missing parameters
401
Authentication error
403
Forbidden — insufficient permissions
404
No saved report of the caller has this id, or the email is not one of its recipients
using var client = new HttpClient();
var request = new HttpRequestMessage(new HttpMethod("DELETE"), "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());