Schedules
Resume a schedule
Resume a paused schedule on its cron cadence.
POST
/
api
/
v2
/
schedules
/
{schedule_id}
/
resume
from hai_agents import Client
client = Client()
schedule = client.schedules.resume_schedule(schedule_id)
print(schedule.next_run_times[0])
import { HaiAgentsClient } from "hai-agents";
const client = new HaiAgentsClient();
const schedule = await client.schedules.resumeSchedule({ scheduleId });
console.log(schedule.nextRunTimes[0]);
curl -X POST "https://agp.eu.hcompany.ai/api/v2/schedules/$SCHEDULE_ID/resume" \
-H "Authorization: Bearer $HAI_API_KEY"
Behavior
The next fire is recomputed from now (fires missed while paused are not made up),pause_note clears, and the consecutive-failure counter resets. sessions_created is kept, so a schedule paused before it reached repeats continues toward that limit. Resuming a schedule that is not paused is a no-op.
A schedule that has already created its repeats sessions stays inactive until you raise repeats or set it to null. Resuming it before that returns 400.
Path parameters
string
required
The schedule’s ID (UUID).
Response
200 with the updated schedule object with paused: false.
from hai_agents import Client
client = Client()
schedule = client.schedules.resume_schedule(schedule_id)
print(schedule.next_run_times[0])
import { HaiAgentsClient } from "hai-agents";
const client = new HaiAgentsClient();
const schedule = await client.schedules.resumeSchedule({ scheduleId });
console.log(schedule.nextRunTimes[0]);
curl -X POST "https://agp.eu.hcompany.ai/api/v2/schedules/$SCHEDULE_ID/resume" \
-H "Authorization: Bearer $HAI_API_KEY"
Errors
| Status | Cause |
|---|---|
400 | The schedule has already created its repeats sessions. Raise repeats, or set it to null, before resuming. |
404 | Not found, or not in your organization. |
Was this page helpful?
⌘I
from hai_agents import Client
client = Client()
schedule = client.schedules.resume_schedule(schedule_id)
print(schedule.next_run_times[0])
import { HaiAgentsClient } from "hai-agents";
const client = new HaiAgentsClient();
const schedule = await client.schedules.resumeSchedule({ scheduleId });
console.log(schedule.nextRunTimes[0]);
curl -X POST "https://agp.eu.hcompany.ai/api/v2/schedules/$SCHEDULE_ID/resume" \
-H "Authorization: Bearer $HAI_API_KEY"