Schedules
Delete a schedule
Delete a schedule and its run history.
DELETE
/
api
/
v2
/
schedules
/
{schedule_id}
from hai_agents import Client
client = Client()
client.schedules.delete_schedule(schedule_id)
import { HaiAgentsClient } from "hai-agents";
const client = new HaiAgentsClient();
await client.schedules.deleteSchedule({ scheduleId });
curl -X DELETE "https://agp.eu.hcompany.ai/api/v2/schedules/$SCHEDULE_ID" \
-H "Authorization: Bearer $HAI_API_KEY"
Behavior
Future fires stop. Sessions it already created keep running.Path parameters
string
required
The schedule’s ID (UUID).
Response
204 No Content.
from hai_agents import Client
client = Client()
client.schedules.delete_schedule(schedule_id)
import { HaiAgentsClient } from "hai-agents";
const client = new HaiAgentsClient();
await client.schedules.deleteSchedule({ scheduleId });
curl -X DELETE "https://agp.eu.hcompany.ai/api/v2/schedules/$SCHEDULE_ID" \
-H "Authorization: Bearer $HAI_API_KEY"
Errors
| Status | Cause |
|---|---|
404 | Not found, or not in your organization. |
Was this page helpful?
⌘I
from hai_agents import Client
client = Client()
client.schedules.delete_schedule(schedule_id)
import { HaiAgentsClient } from "hai-agents";
const client = new HaiAgentsClient();
await client.schedules.deleteSchedule({ scheduleId });
curl -X DELETE "https://agp.eu.hcompany.ai/api/v2/schedules/$SCHEDULE_ID" \
-H "Authorization: Bearer $HAI_API_KEY"