The CheckCentral API provides an endpoint for adding reports programmatically. All of the configuration options are available through the API, detailed below. To add a new report through the API, you will require an API token for your organization with Read/Write access. Organization administrators can create tokens through the API portal on your dashboard.
The endpoint is located at https://api.checkcentral.cc/createReport/?apiToken=APITOKEN where the APITOKEN placeholder is replaced with your valid token. The request must be made with the Content-Type header set to application/json. The body of the request should contain the properties below to configure the new report's settings. Any properties not passed will be set to their default value.
For example, to add a new check report you could send the following json in the body of the request:
The report data must include a name property as well as any data required to generate the report such as check group IDs or dashboard IDs.
The complete list of possible properties for report creation are as follows:
| Parameter | Type/Allowed Values | Default |
|---|---|---|
|
The name of the new report. The |
String | |
|
The type of the new report. The |
One of:
|
|
|
A text description of the report. The description will be included in the body of emails delivering the report. |
String | |
|
The output format for the report. Different report sources allow for different formats. |
One of:
|
For digest reports, the format will always be set to embedded. |
|
Set an optional filename to use for the report. Reports will be generated with a default filename that includes the date of the report and information such as the report type and content. |
String | |
|
To run this report in a different timezone than your organization's timezone, specify it by the standard name in English, e.g. |
String | |
|
Configure the time interval used for sending this report. Unscheduled reports can be send on-demand from your reports page. |
One of:
|
day |
|
How many days/weeks/months should elapse between schedule report deliveries. |
Integer | 1 |
|
The time of day to send the report, in minutes past midnight. For example, 9am local time would be 540 for |
Integer | 540 |
|
Pass an array of days to indicate which days of the week this report should run. This option is only valid for reports with an |
An array containing either
|
[ "all" ] |
|
The day of the week to send the report. This option is only valid for reports with an |
One of:
|
mon |
|
The day of the month to send the report. This option is only valid for reports with an |
1 | |
|
Pass a json object to configure what content CheckCentral will include in this report. |
ReportContent | {} |
|
Pass a json object to configure what recipients CheckCentral will send this report to. |
ReportRecipients | {} |
| Parameter | Type/Allowed Values | Default |
|---|---|---|
|
Set this parameter render this report in dark mode (light text on dark background). |
Bool | false |
|
Set this parameter to use this report's configured name as the document title when generating the report. |
Bool | false |
|
Pass a check ID to to use for the report. The String The |
||
|
Pass a checkgroup ID to use for the report. The |
String |
[] |
| Parameter | Type/Allowed Values | Default |
|---|---|---|
|
Pass this parameter to configure this report to be sent to all users in your organization. |
Bool |
false |
|
Pass an array of user IDs to send this report to. User IDs can be retrieved with the This parameter will be overridden by the |
[String] |
[] |
|
Pass an array of user group IDs to send this report to. User group IDs can be retrieved with the This parameter will be overridden by the |
Array[String] |
[] |
|
Pass this parameter to configure this report to be sent to all users in your organization. |
Bool |
false |
|
Pass an array of notification channel IDs to send this report to. IDs can be retrieved with the This parameter will be overridden by the |
[String] |
[] |
|
Pass an array of email addresses for people outside your organzation to send this report to. Reports sent to external emails will contain all configured checks and groups. |
[String] |
[] |