Appearance
Delete Process Task API
API Information
- Request Path:
/processtask/delete - Request Method:
POST - Content-Type:
application/json
Request Headers
| Parameter | Type | Required | Description |
|---|---|---|---|
| Authorization | String | Yes | User authentication token |
| Content-Type | String | Yes | Must be set to application/json |
Request Parameters
| Parameter | Type | Required | Description | Constraints |
|---|---|---|---|---|
| ProcessTaskDeleteReq | Object | Yes | Task deletion request | Contains task identification parameters |
Request Body Example
json
{
"ids": [12345, 12346]
}Response Body Structure
CommonResponse Object
| Field | Type | Description |
|---|---|---|
| code | Integer | Response status code |
| message | String | Response message |
| data | Boolean | Task deletion result, true indicates success |
Response Examples
Success Response
json
{
"code": 200,
"message": "success",
"data": true
}Failure Response
json
{
"code": 404,
"message": "Tasks not found",
"data": false
}Error Code Description
| Error Code | Description |
|---|---|
| 200 | Success |
| 400 | Request parameter error |
| 401 | Unauthorized |
| 404 | Tasks not found |
| 500 | Server internal error |
Usage Instructions
- This API is used to delete one or more process tasks
- User authentication is required
- Task IDs must be provided in an array
- Returns boolean indicating deletion success
Notes
- Task IDs must reference existing tasks
- Multiple tasks can be deleted in a single request
- Only tasks that belong to the authenticated user can be deleted
- User authentication token must be included in request headers