Scheduled Reports: Remove Recipient
Removes one or more existing recipients from a scheduled report.
What is a scheduled report
A scheduled report is a resource that will automatically create and send reports on a given frequency.
Use case:
- Automatically send an impact report to a client on a monthly basis about their carbon usage.
- Automatically send a collection of offset certificates to the environment reporting department.
- Automatically send an annual data dump of all carbon calculations to your CDP team.
Authorization
API Key AuthorizationBearer <token>
Your API Key must be provided as a bearer token. To do this, create an 'Authorization' header with a value of 'Bearer {your-api-key}' (e.g. "Authorization: Bearer xcvboy23idvh").
In: header
Path Parameters
projectId*string
Format
uuidscheduledReportId*string
Format
uuidRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X DELETE "https://example.com/projects/497f6eca-6276-4993-bfeb-53cbbbba6f08/scheduled-reports/497f6eca-6276-4993-bfeb-53cbbbba6f08/recipients" \ -H "Content-Type: application/json" \ -d '{ "recipients": [ { "email": "user@example.com" } ] }'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "type": "impact", "frequency": "monthly", "recipients": [ { "email": "bob@example.com" }, { "email": "jane@example.com" } ], "project_id": "405d8375-3514-403b-8c43-83ae74cfe0e9", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z", "last_run_at": null, "options": {}}