Workflows

Preview the next runs of a schedule

POST
/workflows/schedule-preview

Check a schedule without saving anything and get its next run times (UTC) plus a plain-English summary. Works for the schedule of a trigger.schedule node, of skills.automation.set and of an import source. kind=rule takes a structured rule: every 14th is unit=month with on=[{type: month_day, day: 14}], the last day of the month is day=-1, the first Monday is {type: nth_weekday, nth: 1, weekday: 1}, the last day of week 4 of the month is {type: month_week, week: 4, day: last}, ISO week 3 of the year is unit=year with {type: year_week, week: 3, day: first}. Show the next runs to the user before publishing.

Authorization

bearerApiKey
AuthorizationBearer <token>

Create a scoped API key in the Adlass settings.

In: header

Header Parameters

X-Request-Id?string

Optional correlation identifier.

Lengthlength <= 128

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X POST "https://example.com/workflows/schedule-preview" \  -H "Content-Type: application/json" \  -d '{    "schedule": {      "kind": "rule",      "timezone": "example"    }  }'
{}