Cancel Tasks in a Batch
Cancel tasks in a batch by a list of task execution codes.
Endpoint Information
Section titled “Endpoint Information”- Name: Batch-cancel tasks
- Description: Cancels multiple task executions.
- Method:
POST - Path:
remoteApi/batchCancelTask - Login required: No
- Permission required: Yes
Note: The robot must be in task mode.
Request Parameters
Section titled “Request Parameters”-
taskExecuteCodeList·List<String>· RequiredList of task execution codes; see the field examples below.
Field Examples
Section titled “Field Examples”taskExecuteCodeList
[ "ysc001_2017053614274048000_20260211160027_4ps6"]Request Example
Section titled “Request Example”{ "taskExecuteCodeList": [ "ysc001_2017481219485192192_20260131143831_yzcd", "ysc001_2017481219485192192_20260131143654_yhxa" ]}Response
Section titled “Response”| Field | Type | Example | Description |
|---|---|---|---|
| code | Integer | 200 | Status code |
| success | Boolean | true | Whether the request succeeded |
| msg | String | success | Response message |
Response Example
Section titled “Response Example”{ "success": true, "code": 200, "msg": "Operation succeeded", "data": null}Error Codes
Section titled “Error Codes”| Code | Description |
|---|---|
| 400 | Invalid parameters |
| 401 | Unauthorized |
| 403 | Access denied |
| 404 | Resource not found |
| 500 | Internal server error |