Skip to content

Preview Schedule

POST /schedules/preview

What this spec would do, without doing it. Authors get cron wrong constantly and a preview is cheaper than a support conversation (§2.7).

FieldTypeNotes
kindcron | interval | one_shot | eventrequired—
cron_expressionsstring[]optional—
timezonestringoptionalDefault "UTC". max length 60
interval_secondsinteger | nulloptionalmin 60
fire_atstring (date-time) | nulloptional—
event_kindstring | nulloptionalmax length 60
countintegeroptionalDefault 5. min 1 max 50
StatusDescriptionBody
200Successful ResponseSchedulePreview
422Validation ErrorHTTPValidationError

The body shows the fields the schema always carries. Which combination is legal is a service rule the schema cannot express, so read the description above before copying this.

Terminal window
curl -X POST https://your-deployment.example.com/schedules/preview \
-H "Authorization: Bearer $COBRE_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"kind": "cron"
}'
FieldTypeNotes
timezonestringrequired—
firesPreviewFireView[]required—
warningsstring[]required—