Schedules a recurring report of a dashboard, emailed to the recipients as a link and, optionally, a PDF attachment. The API key must be able to see the dashboard, as described in List dashboards.
The ID of the dashboard to report on. Returns NOT_FOUND if the dashboard does not exist or the API key cannot see it.
The report title, up to 40 characters. Titles do not have to be unique, but creating a report identical to an existing one, with the same dashboard, schedule, time range, filters, recipients, title, and creator, returns ALREADY_EXISTS.
Contains the schedule that determines when a scheduled report is sent.
How often the report is sent. The possible values are: weekly, monthly, quarterly.
The days of the week the report is sent. Required when frequency is weekly, and not allowed otherwise. The possible values are: sunday, monday, tuesday, wednesday, thursday, friday, saturday.
The day of the month the report is sent, in the months it runs. Required when frequency is monthly or quarterly, and not allowed otherwise. Quarterly reports run in January, April, July, and October. The possible values are: first_day, first_monday, first_sunday.
The time of day the report is sent, in 24-hour HH:MM format, in the time zone set in timezone.
The IANA time zone of schedule.time_of_day. Defaults to UTC.
The report recipients, from 1 to 10. All entries are checked first: if any group ID is unknown or any email address is invalid, nothing is created and the error lists every invalid entry.
Contains a recipient of a scheduled report: an email address or a group.
The kind of recipient. The possible values are: email for an email address, and group for a group ID. Reports created outside this API can also return user, for a workspace user's email address.
The email address or group ID, depending on type.
The period of data in each report. The possible values are: past_day, past_7_days, past_14_days, past_month, past_3_months, past_year, previous_week, previous_month, previous_quarter, year_to_date.
Which cases fall in the time range: those created, closed, or open during it. Defaults to created.
Whether the email includes the report as a PDF attachment. Defaults to true.
Whether the report is sent. Defaults to true. If the workspace or the dashboard has reached its limit of active reports, creating an enabled report returns RESOURCE_EXHAUSTED.
Contains the case filters that limit which cases a scheduled report includes. A case must match every filter that is set, and at least one value within each filter. By default, no case filters are applied and the report includes all cases in its time range. When updating a report, the filters sent replace the current ones, and an empty object removes all filters.
Case categories. Use unassigned for cases without a category.
Case state IDs. The default states are 1 New, 2 In Progress, 3 On Hold, 4 Resolved, and 5 Closed. The ID of a custom state is also accepted.
Case tags.
Assignee email addresses. Use unassigned for cases without an assignee.
Case severities. The possible values are: informational, low, medium, high, critical.
Group IDs the cases are assigned to. Use unassigned for cases without a group.
Case sources. The values are the same as in the scheduled report filters in Torq.
Case source products. The values are the same as in the scheduled report filters in Torq.
Cases that used at least this percentage of their SLA. The possible values are: 0, 40, 60, 80, 90, 100.
A successful response.
A recurring report of a dashboard, emailed to its recipients. If its schedule was set in Torq in a form this API cannot express, schedule is not returned.
The report ID.
The ID of the dashboard the report is based on.
The report title.
Whether the report is sent.
Contains the schedule that determines when a scheduled report is sent.
How often the report is sent. The possible values are: weekly, monthly, quarterly.
The days of the week the report is sent. Required when frequency is weekly, and not allowed otherwise. The possible values are: sunday, monday, tuesday, wednesday, thursday, friday, saturday.
The day of the month the report is sent, in the months it runs. Required when frequency is monthly or quarterly, and not allowed otherwise. Quarterly reports run in January, April, July, and October. The possible values are: first_day, first_monday, first_sunday.
The time of day the report is sent, in 24-hour HH:MM format, in the time zone set in timezone.
The IANA time zone of the schedule.
The period of data in each report.
Which cases fall in the time range.
Contains the case filters that limit which cases a scheduled report includes. A case must match every filter that is set, and at least one value within each filter. By default, no case filters are applied and the report includes all cases in its time range. When updating a report, the filters sent replace the current ones, and an empty object removes all filters.
Case categories. Use unassigned for cases without a category.
Case state IDs. The default states are 1 New, 2 In Progress, 3 On Hold, 4 Resolved, and 5 Closed. The ID of a custom state is also accepted.
Case tags.
Assignee email addresses. Use unassigned for cases without an assignee.
Case severities. The possible values are: informational, low, medium, high, critical.
Group IDs the cases are assigned to. Use unassigned for cases without a group.
Case sources. The values are the same as in the scheduled report filters in Torq.
Case source products. The values are the same as in the scheduled report filters in Torq.
Cases that used at least this percentage of their SLA. The possible values are: 0, 40, 60, 80, 90, 100.
Who receives the report.
Contains a recipient of a scheduled report: an email address or a group.
The kind of recipient. The possible values are: email for an email address, and group for a group ID. Reports created outside this API can also return user, for a workspace user's email address.
The email address or group ID, depending on type.
Whether the email includes the report as a PDF attachment.
When the report is scheduled to run next. Unset when the report is disabled.
When the report was created.
Who created the report: the user's email, the API key's name, or the workflow's name.
When the report was last changed.
Contains the status and timing of a scheduled report's most recent run.
The run's status. The possible values are: running, success, failure.
When the run started.
When the run finished. Unset while the run is in progress.
Invalid bearer token. If you receive this message more than once try creating a new Client ID/Client Secret or generating a new bearer token.
You don't have permission to access this resource.