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
Example
query GetMyDashboardSchedules {
getMyDashboardSchedules {
id
frequencyType
hour
timezone
dayOfWeek
monthlyPosition
nextExecutionTime
dashboardType
dashboardUuid
}
}Related types
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
| Argument | Type | Description |
|---|---|---|
dashboardType | ScheduledDashboardType! | Dashboard type. |
dashboardUuid | UUID! | UUID of the dashboard to schedule. |
dayOfWeek | Int | Day of week (0=Mon, 6=Sun). Required for WEEKLY and MONTHLY. |
frequencyType | FrequencyType! | Recurrence frequency. |
hour | Int! | Hour of day (0–23) to deliver. |
monthlyPosition | MonthlyPosition | FIRST or LAST occurrence of day_of_week. Required for MONTHLY. |
subscriberUserUuids | [String!]! | UUIDs of users to subscribe. |
timezone | String! | 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
createDashboardScheduleCreateDashboardScheduleMutation
CreateDashboardScheduleMutationObject type.
| Field | Type | Description |
|---|---|---|
schedule | DashboardScheduleType | The 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
| Argument | Type | Description |
|---|---|---|
scheduleUuid | UUID! | UUID of the schedule to delete. |
Returns
DeleteDashboardScheduleMutation
Example
mutation DeleteDashboardSchedule($scheduleUuid: UUID!) {
deleteDashboardSchedule(scheduleUuid: $scheduleUuid) {
success
}
}Types used only by deleteDashboardSchedule
deleteDashboardScheduleDeleteDashboardScheduleMutation
DeleteDashboardScheduleMutationObject type.
| Field | Type | Description |
|---|---|---|
success | Boolean! | True if the schedule was deleted. |
Related types
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
| Argument | Type | Description |
|---|---|---|
scheduleUuid | UUID! | UUID of the schedule to unsubscribe from. |
Returns
UnsubscribeFromDashboardScheduleMutation
Example
mutation UnsubscribeFromDashboardSchedule($scheduleUuid: UUID!) {
unsubscribeFromDashboardSchedule(scheduleUuid: $scheduleUuid) {
success
}
}Types used only by unsubscribeFromDashboardSchedule
unsubscribeFromDashboardScheduleUnsubscribeFromDashboardScheduleMutation
UnsubscribeFromDashboardScheduleMutationObject type.
| Field | Type | Description |
|---|---|---|
success | Boolean! | True if unsubscribed successfully. |
Related types
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
| Argument | Type | Description |
|---|---|---|
dayOfWeek | Int | Day of week (0=Mon, 6=Sun). |
hour | Int | Hour of day (0–23) to deliver. |
monthlyPosition | MonthlyPosition | FIRST or LAST occurrence of day_of_week in month. |
scheduleUuid | UUID! | UUID of the schedule to update. |
subscriberUserUuids | [String!] | Replacement list of subscriber user UUIDs. |
timezone | String | IANA 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
updateDashboardScheduleUpdateDashboardScheduleMutation
UpdateDashboardScheduleMutationObject type.
| Field | Type | Description |
|---|---|---|
schedule | DashboardScheduleType | The 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.
