Update scheduled report

Prev Next
Patch
/v1alpha/scheduled_reports/{report_id}

Changes only the fields sent. Fields left out keep their current values, so a request that only sets enabled does not touch the recipients or the schedule. A request with no field to change returns INVALID_ARGUMENT, and a change that makes the report identical to another one returns ALREADY_EXISTS. If the same report is updated concurrently, the last update wins.

Security
HTTP
Type bearer
Path parameters
report_id
stringRequired

The ID of the report to update. Returns NOT_FOUND if the report does not exist, was deleted, or belongs to a dashboard the API key cannot see.

Body parameters
Expand All
object
title
string | null

The report title, up to 40 characters.

ExampleWeekly SOC summary
schedule
object (v1alphaScheduledReportScheduleUpdate)

Contains the schedule fields to change. Fields left out keep their current values, so {"time_of_day": "14:30"} only moves the time. If the report's schedule was set outside this API in a form this API cannot express, send the whole schedule, starting with frequency.

frequency
string

How often the report is sent. If omitted, the current frequency is kept. The possible values are: weekly, monthly, quarterly.

Exampleweekly
days
Array of string

The days of the week the report is sent. If omitted, the current days are kept only while the frequency stays the same, so changing the frequency to weekly requires them. Not allowed when the frequency is not weekly. The possible values are: sunday, monday, tuesday, wednesday, thursday, friday, saturday.

Example[ "monday" ]
string
occurrence
string

The day of the month the report is sent, in the months it runs. If omitted, the current day is kept when both the current and the new frequency are monthly or quarterly, so changing the frequency from weekly requires it. Not allowed when the frequency is weekly. The possible values are: first_day, first_monday, first_sunday.

Examplefirst_monday
time_of_day
string

The time of day the report is sent, in 24-hour HH:MM format, in the time zone set in timezone. If omitted, the current time is kept.

Example09:00
timezone
string | null

The IANA time zone of schedule.time_of_day. An empty value sets UTC.

ExampleAsia/Jerusalem
recipients
Array of object (v1alphaScheduledReportRecipient)

The report recipients, up to 10, replacing the current list. An empty list leaves the recipients unchanged. All entries are checked first: if any group ID is unknown or any email address is invalid, nothing is changed and the error lists every invalid entry.

object

Contains a recipient of a scheduled report: an email address or a group.

type
string Required

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.

Exampleemail
value
string Required

The email address or group ID, depending on type.

Examplesoc-leads@example.com
time_range
string | null

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.

Exampleprevious_month
activity_type
string | null

Which cases fall in the time range: those created, closed, or open during it.

Exampleclosed
attach_pdf
boolean | null

Whether the email includes the report as a PDF attachment.

enabled
boolean | null

Whether the report is sent. Enabling a report when the workspace or the dashboard has reached its limit of active reports returns RESOURCE_EXHAUSTED.

filters
object (v1alphaScheduledReportFilters)

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.

categories
Array of string

Case categories. Use unassigned for cases without a category.

Example[ "Phishing" ]
string
states
Array of integer

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.

Example[ 1, 2 ]
integer (int32)
tags
Array of string

Case tags.

Example[ "vip" ]
string
assignees
Array of string

Assignee email addresses. Use unassigned for cases without an assignee.

Example[ "dana@example.com", "unassigned" ]
string
severities
Array of string

Case severities. The possible values are: informational, low, medium, high, critical.

Example[ "high", "critical" ]
string
group_ids
Array of string

Group IDs the cases are assigned to. Use unassigned for cases without a group.

Example[ "0f8fad5b-d9cb-469f-a165-70867728950e" ]
string
sources
Array of string

Case sources. The values are the same as in the scheduled report filters in Torq.

Example[ "crowdstrike" ]
string
source_products
Array of string

Case source products. The values are the same as in the scheduled report filters in Torq.

Example[ "Falcon" ]
string
sla_range
string

Cases that used at least this percentage of their SLA. The possible values are: 0, 40, 60, 80, 90, 100.

Example80
Responses
200

A successful response.

Expand All
object
report
object (v1alphaScheduledReport)

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.

id
string

The report ID.

Example8b1e6c2a-3f4d-4e5b-9a6c-7d8e9f0a1b2c
dashboard_id
string

The ID of the dashboard the report is based on.

Example0f8fad5b-d9cb-469f-a165-70867728950e
title
string

The report title.

ExampleWeekly SOC summary
enabled
boolean

Whether the report is sent.

schedule
object (v1alphaScheduledReportSchedule)

Contains the schedule that determines when a scheduled report is sent.

frequency
string

How often the report is sent. The possible values are: weekly, monthly, quarterly.

Exampleweekly
days
Array of string

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.

Example[ "monday" ]
string
occurrence
string

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.

Examplefirst_monday
time_of_day
string

The time of day the report is sent, in 24-hour HH:MM format, in the time zone set in timezone.

Example09:00
timezone
string

The IANA time zone of the schedule.

ExampleAsia/Jerusalem
time_range
string

The period of data in each report.

Exampleprevious_week
activity_type
string

Which cases fall in the time range.

Examplecreated
filters
object (v1alphaScheduledReportFilters)

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.

categories
Array of string

Case categories. Use unassigned for cases without a category.

Example[ "Phishing" ]
string
states
Array of integer

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.

Example[ 1, 2 ]
integer (int32)
tags
Array of string

Case tags.

Example[ "vip" ]
string
assignees
Array of string

Assignee email addresses. Use unassigned for cases without an assignee.

Example[ "dana@example.com", "unassigned" ]
string
severities
Array of string

Case severities. The possible values are: informational, low, medium, high, critical.

Example[ "high", "critical" ]
string
group_ids
Array of string

Group IDs the cases are assigned to. Use unassigned for cases without a group.

Example[ "0f8fad5b-d9cb-469f-a165-70867728950e" ]
string
sources
Array of string

Case sources. The values are the same as in the scheduled report filters in Torq.

Example[ "crowdstrike" ]
string
source_products
Array of string

Case source products. The values are the same as in the scheduled report filters in Torq.

Example[ "Falcon" ]
string
sla_range
string

Cases that used at least this percentage of their SLA. The possible values are: 0, 40, 60, 80, 90, 100.

Example80
recipients
Array of object (v1alphaScheduledReportRecipient)

Who receives the report.

object

Contains a recipient of a scheduled report: an email address or a group.

type
string

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.

Exampleemail
value
string

The email address or group ID, depending on type.

Examplesoc-leads@example.com
attach_pdf
boolean

Whether the email includes the report as a PDF attachment.

next_run_at
string (date-time)

When the report is scheduled to run next. Unset when the report is disabled.

created_at
string (date-time)

When the report was created.

created_by
string

Who created the report: the user's email, the API key's name, or the workflow's name.

Exampledana@example.com
updated_at
string (date-time)

When the report was last changed.

last_run
object (v1alphaScheduledReportLastRun)

Contains the status and timing of a scheduled report's most recent run.

status
string

The run's status. The possible values are: running, success, failure.

Examplesuccess
started_at
string (date-time)

When the run started.

finished_at
string (date-time)

When the run finished. Unset while the run is in progress.

401

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.

object
403

You don't have permission to access this resource.

object