Thrust Carbon

Scheduled Reports: Add

POST
/projects/{projectId}/scheduled-reports

Sets up a new scheduled report on a project.

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.
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
Formatuuid

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/projects/497f6eca-6276-4993-bfeb-53cbbbba6f08/scheduled-reports" \  -H "Content-Type: application/json" \  -d '{    "frequency": "monthly",    "type": "impact",    "recipients": [      {        "email": "user@example.com"      }    ],    "options": {}  }'
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "type": "impact",  "frequency": "monthly",  "recipients": [    {      "email": "user@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": {}}