Creates a scheduled task for the specified dashboard. Supports applying filters and formatting, creating alert conditions, and triggering test deliveries.
Supports the following destinations:
Can be either an Organization API Key or Personal Access Token (PAT).
Include in the Authorization header as: Bearer YOUR_TOKEN
Only supported when using an Organization API key. The membership ID of the user who should own the schedule. Note: This value is the membership ID, not the user ID. Use the List users endpoint to retrieve membership IDs.
When using an Organization API key:
userId is provided, the schedule is owned by the specified useruserId is not provided, the schedule is owned by the organizationAttempting to use a Personal Access Token (PAT) with this parameter will result in a 403 Forbidden error. When using a PAT, the schedule owner will be the creator of the PAT.
The ID of the dashboard where the task will be created. This can be retrieved by:
/dashboards is the dashboard's ID; for example: https://myorg.omniapp.co/dashboards/12db1a0aThe name of the task.
A cron expression defining when the schedule will run, in Amazon Web Services (AWS) Cloudwatch syntax.
The IANA timezone where the task should run, such as Asia/Dubai. Refer to the TZ column in this IANA.org timezone description file for a list of accepted values.
The output format of the schedule.
csv, link_only, json, pdf, png, xlsx The destination where the task's output should be delivered.
Note: If using slack, you must connect a Slack workspace to Omni first.
webhook, email, sftp, slack An object specifying the filter conditions to apply to the task. The filter key specified must already exist in the dashboard. If the dashboard doesn't have any filters configured, filters can't be used in the task.
Use the Get dashboard filters and controls endpoint to retrieve filter configuration objects.
Note: Filter keys are case-sensitive and must match exactly.
Required if conditionQueryMapKey is provided. Defines the type of condition to use for alerts.
RESULTS_PRESENT, RESULTS_CHANGED, RESULTS_MISSING, RESULTS_UNCHANGED Required if conditionType is provided. The ID of the query to monitor for triggering an alert. Must reference a valid query in the dashboard.
The ID of the query to include in a single tile task. Must reference a valid query in the dashboard.
Required for:
format: json with enableFormatting: trueformat: xlsx with overrideRowLimit: trueIf true, stop the entire job if any queries included in the task fail.
If true, run the task immediately instead of scheduling.
Not supported for RESULTS_CHANGED alert conditions.
Compatible with pdf and png formats. If true, the content's title will be hidden in the task's output.
Compatible with csv and xlsx formats. If true, fields marked as hidden won't be displayed in the task's output.
Compatible with csv and json formats. If true, formatting will be enabled in the task's output.
If true for json format, queryIdentifierMapKey is required.
Compatible with csv, json, and xlsx formats. If true, the default row limit will be overridden.
If true for json and xlsx formats, a queryIdentifierMapKey is required.
Compatible with csv, json, and xlsx formats. Used with overrideRowLimit. Specifies the maximum number of rows.
Compatible with all formats except link_only. If true, a link to the content will be shown in the task's output.
Compatible with all formats except link_only and csv. If true, filters will be shown in the task's output.
Compatible with pdf and png formats. If true, up to 1,000 rows in table visualizations will be included in the delivery.
This parameter cannot be used when paperFormat: fit_page.
Compatible with pdf format. Defines the paper format (size) of the resulting PDF.
The fit_page option cannot be used if expandTablesToShowAllRows: true.
a3, a4, letter, legal, fit_page, tabloid Compatible with pdf format. Defines the paper orientation of the resulting PDF.
portrait, landscape Compatible with pdf and png formats. If true, dashboard tiles will be arranged into a single vertical column.
Required if destinationType: webhook. A webhook URL. Must be a valid HTTP/HTTPS URL.
Required if destinationType: email or destinationType: slack.
For email destinations: An array of strings, each specifying a valid email address.
For Slack destinations: Channel or user IDs. Accepts either a string or array format:
"C01234567") or an array with exactly one channel ID (["C01234567"]). Additionally:
"U111,U222") or an array of user IDs (["U111", "U222"])Required if destinationType: email. Email subject line.
Applicable to email and Slack destinations. Custom message text included with the delivery.
Required if destinationType: slack. Specifies whether recipients are a channel or individual users.
channel: Deliver to a Slack channel. If the channel is private, you'll also need to invite the Omni Slackbot to the channel.users: Deliver to individual Slack userschannel, users Applicable to email destinations. If true, send individual emails to each recipient.
Required if destinationType: sftp. SFTP server address.
Required if destinationType: sftp. SFTP port.
Required if destinationType: sftp. SFTP username.
Required if destinationType: sftp. Remote file path.
Applicable to SFTP destinations. SFTP password.