Skip to content

Delete Process Task API ​

API Information ​

  • Request Path: /processtask/delete
  • Request Method: POST
  • Content-Type: application/json

Request Headers ​

ParameterTypeRequiredDescription
AuthorizationStringYesUser authentication token
Content-TypeStringYesMust be set to application/json

Request Parameters ​

ParameterTypeRequiredDescriptionConstraints
ProcessTaskDeleteReqObjectYesTask deletion requestContains task identification parameters

Request Body Example ​

json
{
  "ids": [12345, 12346]
}

Response Body Structure ​

CommonResponse Object ​

FieldTypeDescription
codeIntegerResponse status code
messageStringResponse message
dataBooleanTask 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 CodeDescription
200Success
400Request parameter error
401Unauthorized
404Tasks not found
500Server internal error

Usage Instructions ​

  1. This API is used to delete one or more process tasks
  2. User authentication is required
  3. Task IDs must be provided in an array
  4. 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