Create an export schedule for a dashboard.
Creates a new recurring export subscription for the dashboard (ADR-0051, DVT-726). Requires dashboard:write. Supply either a raw 5-field cron expression or a preset object — not both. The cron is validated server-side; timezone must be a valid IANA timezone name. next_run_at is computed from (cron, timezone) in the same transaction. Destinations (Slack webhooks) are deferred to DVT-729 — a body with destinations is accepted but ignored (field is reserved for that ticket) for pdf/png; on xlsx/csv a non-empty destinations is rejected with a 400 (xlsx/csv are email-only).
A timezone that cannot be resolved to an IANA zone is a 422 (DVT-4321), not a 400; the failing value is echoed in a timezone extension field. A blank timezone, or "Local", normalizes to UTC rather than being rejected.
Request
- Base URL: http://localhost:8080
- URL: http://localhost:8080/v1/dashboards/{id}/export-schedules
- Auth: one of:
- API key in cookie dvt_session
- HTTP bearer
Request body
Example request
{
"cron": "0 9 * * 1"
}Response
Schedule created.
Changes
No recorded changes to this operation across all 1 revision of this API.