---
title: "cancelSchedule"
method: DELETE
path: "/v1/automation/executions/{execution_id}/schedules/{schedule_id}"
tags: ["executions"]
---

# cancelSchedule

`DELETE /v1/automation/executions/{execution_id}/schedules/{schedule_id}`

Cancel a scheduled automation

## Path parameters

- `execution_id` string, required
- `schedule_id` string, required

## Response `200`

The schedule was successfully cancelled

- ActionSchedule
  - `id` string, required — Schedule Id
  - `scheduleApiId` string — The id of the configured scheduler which will be added on automation triggered
  - `numberOfUnits` number
  - `timePeriod` 'minutes' | 'hours' | 'days' | 'weeks' | 'months'
  - `timeRelation` 'after' | 'before'
  - `source` ActionScheduleSource, required — The source of the schedule_at timestamp that will be used to schedule the action
    - `id` string, required — The id of the action or trigger
    - `origin` 'trigger' | 'action' | 'action_task' | 'automation', required
    - `schema` string
    - `attribute` string

## Other responses

- `403` — The requested resource is forbidden
- `404` — The requested resource was not found

---

[API](https://skmtc.dev/epilot/apis/automation-api.md) · [All operations](https://skmtc.dev/epilot/apis/automation-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/epilot/automation-api/revisions/58201f2fde13/schema)
