Delete Task Templates
Delete task templates in a batch by task template code.
Endpoint Information
Section titled “Endpoint Information”- Name: Delete task templates by code
- Description: Deletes the task templates identified by their codes.
- Method:
POST - Path:
remoteApi/removeTaskModelByCodes - Login required: No
- Permission required: Yes
Note: Deleting a task template also deletes its tasks that have not started. To stop tasks from this template that are already running, use the cancel-task or batch-cancel endpoint.
Request Parameters
Section titled “Request Parameters”| Parameter | Type | Required | Example | Description |
|---|---|---|---|---|
| taskCodes | List<String> | Yes | 1993569697305985024 | List of task-template codes |
Example:
{ "taskCodes": [ "1993569697305985024" ]}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 |
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 |