Skip to content

Cancel Task Execution

Request

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.
Security
Authorization
Path
idstringrequired
Bodyapplication/jsonrequired
idstringrequired

Plan id

curl -i -X POST \
  'https://api.morelogin.com/cloudphone/rpa/subTask/cancel/{id}' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "id": "1678919049331329"
  }'

Responses

Success. data is always null for this operation; the outcome is carried by code.

Headers
any
Bodyapplication/json
codeintegerrequired

Response code, 0 indicates success,>0 indicates failure

msgstring or nullrequired

Error msg

requestIdstringrequired

Request trace id

datanullrequired
Response
{ "code": 0, "msg": null, "requestId": "0d8b6f1c-9f4e-4d02-9d1a-7c3f5a1b2c3d", "data": null }