schedules
Create a schedule
Create a new IMPERATIVE schedule based on the specified options.
post/api/v1/schedules
Request body
Example request
{
"timezone": "America/New_York"
}Response
Schedule created successfully
Example response
{
"id": "sched_1234",
"task": "my-scheduled-task",
"type": "IMPERATIVE",
"active": true,
"deduplicationKey": "dedup_key_1234",
"externalId": "user_1234",
"generator": {
"expression": "0 0 * * *",
"description": "Every day at midnight"
},
"timezone": "America/New_York",
"nextRun": "2024-04-01T00:00:00Z"
}