> ## Documentation Index > Fetch the complete documentation index at: https://developers.torq.io/llms.txt > Use this file to discover all available pages before exploring further. # Update scheduled report > 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. ## OpenAPI ````json PATCH /v1alpha/scheduled_reports/{report_id} { "openapi": "3.0.1", "info": { "contact": { "email": "support@torq.io", "name": "torq.io", "url": "https://torq.io" }, "title": "Torq Public API[production]", "version": "${DH_DEPLOY_VERSION}" }, "servers": [ { "url": "https://api.torq.io/public", "description": "US Environment" }, { "url": "https://api.eu.torq.io/public", "description": "European Enviornment" } ], "security": [ { "bearerAuth": [] } ], "tags": [ { "name": "Files" }, { "name": "ActivityLogs" }, { "name": "AgentsHubService" }, { "name": "Users" }, { "name": "ApiKeys" }, { "name": "AuditLogs" }, { "name": "ContextGraph" }, { "name": "DashboardsService" }, { "name": "Executions" }, { "name": "ShareRequests" }, { "name": "StepRunners" }, { "name": "Integrations" }, { "name": "IPAccessService" }, { "name": "RolesService" }, { "name": "ScheduledReportsService" }, { "name": "Secrets" }, { "name": "SecuritySettingsService" }, { "name": "ClaimMappings" }, { "name": "IdpSsoService" }, { "name": "Workflows" }, { "name": "Workspaces" }, { "name": "WorkspaceVariables" }, { "name": "Auto Triage Alerts" }, { "name": "Auto Triage Guidance" }, { "name": "Auto Triage Alert History" }, { "name": "Auto Triage Rules" }, { "name": "Auto Triage Verdict Actions" }, { "name": "Cases" }, { "name": "Cases Custom Fields" }, { "name": "Cases Notes" }, { "name": "ExtendedCaseService" }, { "name": "Cases Attachments" }, { "name": "Observables" }, { "name": "Cases Observables" }, { "name": "CaseSearchService" }, { "name": "Cases Tasks" }, { "name": "Cases Task Templates" }, { "name": "Cases Links" }, { "name": "Cases Events" }, { "name": "Cases Runbooks" } ], "externalDocs": { "description": "Torq Documentation", "url": "https://learn.torq.io" }, "x-original-swagger-version": "2.0", "paths": { "/v1alpha/scheduled_reports/{report_id}": { "patch": { "description": "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.", "operationId": "updateScheduledReport", "parameters": [ { "description": "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.", "in": "path", "name": "report_id", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Update_scheduled_report_request" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/v1alphaUpdateScheduledReportResponse" } } }, "description": "A successful response." }, "401": { "content": { "application/json": { "schema": { "type": "object" } } }, "description": "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." }, "403": { "content": { "application/json": { "schema": { "type": "object" } } }, "description": "You don't have permission to access this resource." } }, "summary": "Update scheduled report", "tags": [ "Scheduled Reports" ], "x-codegen-request-body-name": "body" } } }, "components": { "schemas": { "Update_scheduled_report_request": { "properties": { "title": { "description": "The report title, up to 40 characters.", "example": "Weekly SOC summary", "nullable": true, "type": "string" }, "schedule": { "$ref": "#/components/schemas/v1alphaScheduledReportScheduleUpdate" }, "timezone": { "description": "The IANA time zone of `schedule.time_of_day`. An empty value sets `UTC`.", "example": "Asia/Jerusalem", "nullable": true, "type": "string" }, "recipients": { "description": "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.", "items": { "$ref": "#/components/schemas/v1alphaScheduledReportRecipient" }, "type": "array" }, "time_range": { "description": "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`.", "example": "previous_month", "nullable": true, "type": "string" }, "activity_type": { "description": "Which cases fall in the time range: those `created`, `closed`, or `open` during it.", "example": "closed", "nullable": true, "type": "string" }, "attach_pdf": { "description": "Whether the email includes the report as a PDF attachment.", "nullable": true, "type": "boolean" }, "enabled": { "description": "Whether the report is sent. Enabling a report when the workspace or the dashboard has reached its limit of active reports returns RESOURCE_EXHAUSTED.", "nullable": true, "type": "boolean" }, "filters": { "$ref": "#/components/schemas/v1alphaScheduledReportFilters" } }, "title": "Update scheduled report request", "type": "object" }, "v1alphaUpdateScheduledReportResponse": { "properties": { "report": { "$ref": "#/components/schemas/v1alphaScheduledReport" } }, "title": "Update scheduled report response", "type": "object" }, "v1alphaScheduledReportScheduleUpdate": { "description": "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`.", "properties": { "frequency": { "description": "How often the report is sent. If omitted, the current frequency is kept. The possible values are: `weekly`, `monthly`, `quarterly`.", "example": "weekly", "type": "string" }, "days": { "description": "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" ], "items": { "type": "string" }, "type": "array" }, "occurrence": { "description": "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`.", "example": "first_monday", "type": "string" }, "time_of_day": { "description": "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.", "example": "09:00", "type": "string" } }, "type": "object" }, "v1alphaScheduledReportRecipient": { "description": "Contains a recipient of a scheduled report: an email address or a group.", "properties": { "type": { "description": "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.", "example": "email", "type": "string" }, "value": { "description": "The email address or group ID, depending on `type`.", "example": "soc-leads@example.com", "type": "string" } }, "required": [ "type", "value" ], "type": "object" }, "v1alphaScheduledReportFilters": { "description": "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.", "properties": { "categories": { "description": "Case categories. Use `unassigned` for cases without a category.", "example": [ "Phishing" ], "items": { "type": "string" }, "type": "array" }, "states": { "description": "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 ], "items": { "format": "int32", "type": "integer" }, "type": "array" }, "tags": { "description": "Case tags.", "example": [ "vip" ], "items": { "type": "string" }, "type": "array" }, "assignees": { "description": "Assignee email addresses. Use `unassigned` for cases without an assignee.", "example": [ "dana@example.com", "unassigned" ], "items": { "type": "string" }, "type": "array" }, "severities": { "description": "Case severities. The possible values are: `informational`, `low`, `medium`, `high`, `critical`.", "example": [ "high", "critical" ], "items": { "type": "string" }, "type": "array" }, "group_ids": { "description": "Group IDs the cases are assigned to. Use `unassigned` for cases without a group.", "example": [ "0f8fad5b-d9cb-469f-a165-70867728950e" ], "items": { "type": "string" }, "type": "array" }, "sources": { "description": "Case sources. The values are the same as in the scheduled report filters in Torq.", "example": [ "crowdstrike" ], "items": { "type": "string" }, "type": "array" }, "source_products": { "description": "Case source products. The values are the same as in the scheduled report filters in Torq.", "example": [ "Falcon" ], "items": { "type": "string" }, "type": "array" }, "sla_range": { "description": "Cases that used at least this percentage of their SLA. The possible values are: `0`, `40`, `60`, `80`, `90`, `100`.", "example": "80", "type": "string" } }, "type": "object" }, "v1alphaScheduledReport": { "description": "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.", "properties": { "id": { "description": "The report ID.", "example": "8b1e6c2a-3f4d-4e5b-9a6c-7d8e9f0a1b2c", "type": "string" }, "dashboard_id": { "description": "The ID of the dashboard the report is based on.", "example": "0f8fad5b-d9cb-469f-a165-70867728950e", "type": "string" }, "title": { "description": "The report title.", "example": "Weekly SOC summary", "type": "string" }, "enabled": { "description": "Whether the report is sent.", "type": "boolean" }, "schedule": { "$ref": "#/components/schemas/v1alphaScheduledReportSchedule" }, "timezone": { "description": "The IANA time zone of the schedule.", "example": "Asia/Jerusalem", "type": "string" }, "time_range": { "description": "The period of data in each report.", "example": "previous_week", "type": "string" }, "activity_type": { "description": "Which cases fall in the time range.", "example": "created", "type": "string" }, "filters": { "$ref": "#/components/schemas/v1alphaScheduledReportFilters" }, "recipients": { "description": "Who receives the report.", "items": { "$ref": "#/components/schemas/v1alphaScheduledReportRecipient" }, "type": "array" }, "attach_pdf": { "description": "Whether the email includes the report as a PDF attachment.", "type": "boolean" }, "next_run_at": { "description": "When the report is scheduled to run next. Unset when the report is disabled.", "format": "date-time", "type": "string" }, "created_at": { "description": "When the report was created.", "format": "date-time", "type": "string" }, "created_by": { "description": "Who created the report: the user's email, the API key's name, or the workflow's name.", "example": "dana@example.com", "type": "string" }, "updated_at": { "description": "When the report was last changed.", "format": "date-time", "type": "string" }, "last_run": { "$ref": "#/components/schemas/v1alphaScheduledReportLastRun" } }, "type": "object" }, "v1alphaScheduledReportSchedule": { "description": "Contains the schedule that determines when a scheduled report is sent.", "properties": { "frequency": { "description": "How often the report is sent. The possible values are: `weekly`, `monthly`, `quarterly`.", "example": "weekly", "type": "string" }, "days": { "description": "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" ], "items": { "type": "string" }, "type": "array" }, "occurrence": { "description": "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`.", "example": "first_monday", "type": "string" }, "time_of_day": { "description": "The time of day the report is sent, in 24-hour HH:MM format, in the time zone set in `timezone`.", "example": "09:00", "type": "string" } }, "required": [ "frequency", "time_of_day" ], "type": "object" }, "v1alphaScheduledReportLastRun": { "description": "Contains the status and timing of a scheduled report's most recent run.", "properties": { "status": { "description": "The run's status. The possible values are: `running`, `success`, `failure`.", "example": "success", "type": "string" }, "started_at": { "description": "When the run started.", "format": "date-time", "type": "string" }, "finished_at": { "description": "When the run finished. Unset while the run is in progress.", "format": "date-time", "type": "string" } }, "type": "object" } }, "securitySchemes": { "bearerAuth": { "type": "http", "scheme": "bearer", "bearerFormat": "64fb4b65-44d8-4304-881c-b1f8b6b3100a" } } } } ````