schedules
Activate Schedule
Activate a schedule by its ID. This will only work on IMPERATIVE schedules that were created in the dashboard or using the imperative SDK functions like schedules.create().
post/api/v1/schedules/{schedule_id}/activate
Path parameters
schedule_idstring required
The ID of the schedule.
Response
Schedule updated 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"
}