API Stability Long-Term

The updateScheduledReport() GraphQL mutation may be used to update a scheduled report. Only the given property values are updated.

Syntax

Below is the syntax for the updateScheduledReport() mutation field:

graphql
updateScheduledReport(
      input: UpdateScheduledReportInput!
   ): ScheduledReport!

Below is an example of how this mutation field might be used:

Show:
graphql
mutation {
  updateScheduledReport(input:
       { id: "abc123",
         viewName: "humio",
         schedule: {cronExpression: "H 2 * * *", 
                    timeZone: "UTC+00:00", 
                    startDate: 1729781206587},
         recipients: ["bob@company.com", "ted@company.com"]
      } )
  { id }
}
Example Responses
Show:
json
{
  "data": {
    "updateScheduledReport": {
      "id": "abc123"
    }
  }
}

Given Datatypes

For UpdateScheduledReportInput, there are several parameters. Below is a list of them along with a description of each:

Table: UpdateScheduledReportInput

ParameterTypeRequiredDefaultStabilityDescription
Some arguments may be required, as indicated in the Required column. For some fields, this column indicates that a result will always be returned for this column.
Table last updated: Feb 26, 2025
dashboardIdstring   The unique identifier of the dashboard for which the report was created.
descriptionstring   Description of the scheduled report.
enabledbooleanyes  Flag indicating whether the scheduled report is enabled.
idstringyes  The unique identifier of the scheduled report.
labels[string]yes  Labels attached to the scheduled report.
layoutUpdateScheduledReportLayoutInput   Layout of the scheduled report. See UpdateScheduledReportLayoutInput.
namestring   The name of the scheduled report.
parameters[UpdateScheduledReportParameterValueInput]yes  A list of parameter value configurations. See UpdateScheduledReportParameterValueInput.
passwordstring   The password used to protect any generated reports.
recipients[string]   A list of recipients who should receive an email with the generated report.
scheduleUpdateScheduledReportScheduleInput   The schedule by which to run the report. See UpdateScheduledReportScheduleInput.
timeIntervalFromstring   The start of the relative time interval for the dashboard.
viewNamestringyes  The name of the view of the scheduled report.

Returned Datatypes

The returned datatype ScheduledReport has several parameters. Below is a list of them along with a description of each:

Table: ScheduledReport

ParameterTypeRequiredDefaultStabilityDescription
Some arguments may be required, as indicated in the Required column. For some fields, this column indicates that a result will always be returned for this column.
Table last updated: Mar 19, 2025
allowedActions[AssetAction]yes PreviewAllowed asset actions. This is a preview and subject to changes. See AssetAction.
createdByUser  Long-TermUser who created the report. See User.
creationDatestringyes Long-TermDate when the report was created.
dashboardDashboardyes Long-TermThe dashboard for which the report was created. See TEXT.
dashboardIdstringyes Long-TermThe unique identifier of the dashboard for which the report was created.
descriptionstringyes Long-TermDescription of the scheduled report.
enabledbooleanyes Long-TermWhether the scheduled report is enabled.
idstringyes Long-TermThe unique identifier of the scheduled report.
isPasswordDefinedbooleanyes Long-TermWhether a password is defined for the report.
labels[string]yes Long-TermLabels attached to the scheduled report.
lastExecutionErrors[string]yes Long-TermLast errors encountered while generating the scheduled report.
lastExecutionWarnings[string]yes Long-TermLast warnings encountered while generating the scheduled report.
layoutScheduledReportLayoutyes Long-TermLayout of the scheduled report. See ScheduledReportLayout.
namestringyes Long-TermThe name of the scheduled report.
parameters[ParameterValue]yes Long-TermList of parameter value configurations. See ParameterValue.
recipients[string]yes Long-TermList of recipients who should receive an email with the generated report.
resourcestringyes Short-TermThe resource identifier for this scheduled report.
scheduleScheduleyes Long-TermThe schedule by which to run the report. See Schedule.
statusstringyes Long-TermStatus of the latest report execution.
timeIntervalStartstring  Long-TermStart of the relative time interval for the dashboard.
timeOfLastReportExecutionlong  Long-TermUnix timestamp for the last report execution. The timestamp only indicates an attempt, not if it was successful.
timeOfNextPlannedReportExecutionlong  Long-TermUnix timestamp for the next planned report execution.