# Cancel RPA Schedule

Cancel an RPA schedule and every execution of it that has not finished.
- **Preconditions**: the schedule must exist in the team. A finished schedule cannot be cancelled; an already cancelled one returns success without doing anything.
- **Effect**: the schedule is marked cancelled **synchronously**, and a cancel request is queued for each pending, waiting, executing or checking execution.
- **Completion**: mixed. Read the schedule state from `/cloudphone/rpa/task/page`, but confirm individual executions through `/cloudphone/rpa/subTask/page` — an execution already running stops asynchronously, not at once.
- **Retry**: idempotent.

Endpoint: POST /cloudphone/rpa/task/cancel
Version: 2026-09-05
Security: Authorization

## Security:

  - `Authorization` (unknown)
    http bearer JWT

## Request fields (application/json):

  - `id` (string, required)
    Plan id

## Response 200:

  - `200` (unknown)
    Success. `data` is always null for this operation; the outcome is carried by `code`.

## Response 200 fields (application/json):

  - `code` (integer, required)
    Response code, 0 indicates success,>0 indicates failure

  - `msg` (string | null, required)
    Error msg

  - `requestId` (string, required)
    Request trace id

  - `data` (null, required)

