# 删除待办
调用本接口,对当前待办任务和待办任务关联的事务进行删除
# 权限
要调用此API,需要申请poa能力,获取poa token,接口请求头中添加 Authorization 值为token
# 请求方法
报文样例
POST PUT /apis/ttc/v1/transaction/poa/todo/deleteTask
Host: poa地址
Authorization:String
Content-Type:application/json
[
{
"appId": "GzqhyfpMLSEexyO78bDgO-UWlK6PwOyAE",
"creator": "smartadmin",
"taskId": "TASK0002"
}
]
1
2
3
4
5
6
7
8
9
10
11
12
2
3
4
5
6
7
8
9
10
11
12
# Header参数
名称 | 类型 | 是否必填 | 描述 |
---|---|---|---|
Authorization | String | 是 | 接口访问凭证 |
# Body参数
名称 | 类型 | 是否必填 | 描述 |
---|---|---|---|
appId | String | 是 | 业务系统应用appId |
taskId | String | 是 | 任务ID |
creator | String | 是 | 创建人学、工号 |
# 接口调用成功返回
{
"took": 648,
"timestamp": 1669864234995,
"code": 0,
"message": "删除成功",
"data": {
"errorIds": []
}
}
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
# 接口调用失败返回
- 接口支持批量,批量操作中的每条数据独立运行,批量中有失败的数据接口整体响应code为0 (成功),data中返回出现错误的数据
{
"took": 285,
"timestamp": 1688712485963,
"code": 0,
"message": "删除中有异常数据",
"data": {
"errorIds": [
{
"code": 400,
"taskId": "TTT20230703-002-001",
"message": "taskId is null"
}
]
}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
2
3
4
5
6
7
8
9
10
11
12
13
14
15
- data.errorIds.code说明:
code | message | 说明 |
---|---|---|
400 | xxx is null | 参数校验不合法 |
500 | * | 业务逻辑异常 |
2004 | this task is not exist | 当前任务不存在 |
2008 | the transaction is not exists | 当前事务不存在 |