# Cancel Execution

Cancel a single RPA execution without touching its schedule.
- **Preconditions**: the execution record must exist in the team. A finished one cannot be cancelled; an already cancelled one returns success without doing anything.
- **Effect**: **queues a cancel request only — no state is written by this call.** The schedule keeps running and later executions are unaffected. Use `/cloudphone/rpa/task/cancel` to stop the schedule itself.
- **Completion**: asynchronous. Poll `/cloudphone/rpa/subTask/page` or the execution detail until the state becomes cancelled. An execution that is already running is not stopped instantly.
- **Retry**: idempotent; a repeat only re-queues the request.

Endpoint: POST /api/cloudphone/rpa/subTask/cancel/{id}
Version: 2026-09-05

## Path parameters:

  - `id` (string, required)

## 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)

