取消任务
POST
/api/tasks/cancel请求参数
Body 参数application/json
task_id
integer
任务id
示例1
{
"task_id": 1329
}
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
detail
string
响应描述
示例
{
"detail": "Task has been cancelled."
}
最后修改时间: 4 个月前
POST
/api/tasks/cancel{
"task_id": 1329
}
{
"detail": "Task has been cancelled."
}