Dashboard schedules (GraphQL)

Related queries and mutations in Dashboards and reports. Each has its own section.

Queries

getMyDashboardSchedules (query)

getMyDashboardSchedules is a query in the Monte Carlo GraphQL API, in Dashboards and reports. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

List dashboard schedules the calling user is subscribed to.

Returns

[DashboardScheduleType!]!

Example

query GetMyDashboardSchedules {
  getMyDashboardSchedules {
    id
    frequencyType
    hour
    timezone
    dayOfWeek
    monthlyPosition
    nextExecutionTime
    dashboardType
    dashboardUuid
  }
}

Related types

DashboardScheduleType

Mutations

createDashboardSchedule (mutation)

createDashboardSchedule is a mutation in the Monte Carlo GraphQL API, in Dashboards and reports. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

Create a recurring delivery schedule for a dashboard.

Arguments

ArgumentTypeDescription
dashboardTypeScheduledDashboardType!Dashboard type.
dashboardUuidUUID!UUID of the dashboard to schedule.
dayOfWeekIntDay of week (0=Mon, 6=Sun). Required for WEEKLY and MONTHLY.
frequencyTypeFrequencyType!Recurrence frequency.
hourInt!Hour of day (0–23) to deliver.
monthlyPositionMonthlyPositionFIRST or LAST occurrence of day_of_week. Required for MONTHLY.
subscriberUserUuids[String!]!UUIDs of users to subscribe.
timezoneString!IANA timezone, e.g. America/New_York.

Returns

CreateDashboardScheduleMutation

Example

mutation CreateDashboardSchedule($dashboardType: ScheduledDashboardType!, $dashboardUuid: UUID!, $frequencyType: FrequencyType!, $hour: Int!, $subscriberUserUuids: [String!]!, $timezone: String!) {
  createDashboardSchedule(dashboardType: $dashboardType, dashboardUuid: $dashboardUuid, frequencyType: $frequencyType, hour: $hour, subscriberUserUuids: $subscriberUserUuids, timezone: $timezone) {
    schedule {
      id
      frequencyType
      hour
      timezone
      dayOfWeek
      monthlyPosition
      nextExecutionTime
      dashboardType
      dashboardUuid
    }
  }
}

Types used only by createDashboardSchedule

CreateDashboardScheduleMutation

Object type.

FieldTypeDescription
scheduleDashboardScheduleTypeThe created dashboard schedule.

Related types

DashboardScheduleType, FrequencyType, MonthlyPosition, ScheduledDashboardType, UUID

deleteDashboardSchedule (mutation)

deleteDashboardSchedule is a mutation in the Monte Carlo GraphQL API, in Dashboards and reports. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

Delete a recurring delivery schedule for a dashboard.

Arguments

ArgumentTypeDescription
scheduleUuidUUID!UUID of the schedule to delete.

Returns

DeleteDashboardScheduleMutation

Example

mutation DeleteDashboardSchedule($scheduleUuid: UUID!) {
  deleteDashboardSchedule(scheduleUuid: $scheduleUuid) {
    success
  }
}

Types used only by deleteDashboardSchedule

DeleteDashboardScheduleMutation

Object type.

FieldTypeDescription
successBoolean!True if the schedule was deleted.

Related types

UUID

unsubscribeFromDashboardSchedule (mutation)

unsubscribeFromDashboardSchedule is a mutation in the Monte Carlo GraphQL API, in Dashboards and reports. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

Unsubscribe from a dashboard schedule.

Arguments

ArgumentTypeDescription
scheduleUuidUUID!UUID of the schedule to unsubscribe from.

Returns

UnsubscribeFromDashboardScheduleMutation

Example

mutation UnsubscribeFromDashboardSchedule($scheduleUuid: UUID!) {
  unsubscribeFromDashboardSchedule(scheduleUuid: $scheduleUuid) {
    success
  }
}

Types used only by unsubscribeFromDashboardSchedule

UnsubscribeFromDashboardScheduleMutation

Object type.

FieldTypeDescription
successBoolean!True if unsubscribed successfully.

Related types

UUID

updateDashboardSchedule (mutation)

updateDashboardSchedule is a mutation in the Monte Carlo GraphQL API, in Dashboards and reports. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

Update a recurring delivery schedule for a dashboard.

Arguments

ArgumentTypeDescription
dayOfWeekIntDay of week (0=Mon, 6=Sun).
hourIntHour of day (0–23) to deliver.
monthlyPositionMonthlyPositionFIRST or LAST occurrence of day_of_week in month.
scheduleUuidUUID!UUID of the schedule to update.
subscriberUserUuids[String!]Replacement list of subscriber user UUIDs.
timezoneStringIANA timezone.

Returns

UpdateDashboardScheduleMutation

Example

mutation UpdateDashboardSchedule($scheduleUuid: UUID!) {
  updateDashboardSchedule(scheduleUuid: $scheduleUuid) {
    schedule {
      id
      frequencyType
      hour
      timezone
      dayOfWeek
      monthlyPosition
      nextExecutionTime
      dashboardType
      dashboardUuid
    }
  }
}

Types used only by updateDashboardSchedule

UpdateDashboardScheduleMutation

Object type.

FieldTypeDescription
scheduleDashboardScheduleTypeThe updated dashboard schedule.

Related types

DashboardScheduleType, MonthlyPosition, UUID

Source: The GraphQL API reference

This page is generated from the GraphQL schema on each release. Changes made in ReadMe are overwritten.