Skip to content

Delete Task Templates

Delete task templates in a batch by task template code.

  • 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.


ParameterTypeRequiredExampleDescription
taskCodesList<String>Yes1993569697305985024List of task-template codes

Example:

{
"taskCodes": [
"1993569697305985024"
]
}
FieldTypeExampleDescription
codeInteger200Status code
successBooleantrueWhether the request succeeded
msgStringsuccessResponse message

Example:

{
"success": true,
"code": 200,
"msg": "Operation succeeded",
"data": null
}
CodeDescription
400Invalid parameters
401Unauthorized
403Access denied
404Resource not found
500Internal server error