Create notification rule
Creates a rule that runs widget_id on a cron schedule and delivers the result by email, Slack, or both. widget_id must name a widget on this board.
Path parameters
org_id
Organization ID
workspace_id
Workspace ID
board_id
Headers
X-API-Key
Your workspace API key.
Request
This endpoint expects an object.
widget_id
Widget whose result is delivered on this schedule
cron
Five-field cron expression evaluated in Asia/Kolkata. The minimum interval is one hour.
name
Label for the rule
email_recipients
Email addresses to deliver to. At least one of this or slack_webhook_url is required.
slack_webhook_url
Slack incoming-webhook URL. Write-only: never returned by any endpoint.
slack_channel_name
Display label for the Slack destination
Response
Successful Response
rule_id
Rule identifier, used as {rule_id} in nested routes
widget_id
Widget whose result this rule delivers
cron
Five-field cron expression, evaluated in Asia/Kolkata
enabled
False while the schedule is paused
created_at
Creation time, UTC, RFC 3339
updated_at
Last change time, UTC, RFC 3339
name
Label for the rule, or null when unnamed
next_run_at
Next scheduled delivery, UTC. Null when the rule is disabled.
email_recipients
Configured email recipients
slack_channel_name
Slack destination label, when one is configured
slack_configured
True when a Slack webhook is set. The URL itself is never returned.
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error
429
Too Many Requests Error
500
Internal Server Error