请求方式: PUT(HTTPS)
认证方式: access_token,请参考获取access_token
请求地址: https://open.welink.huaweicloud.com/api/todo/v1/updatetask
请求头部:
x-wlk-Authorization:access_token
请求参数说明:
参数 | 参数类型 | 说明 | 是否必填 |
---|---|---|---|
taskId | string | 租户应用任务id | 是 |
userId | string | 任务的当前处理人账号 | 是 |
请求示例:
curl –X PUT
'https://open.welink.huaweicloud.com/api/todo/v1/updatetask?taskId=5&userId=todo20190725889'
-H 'x-wlk-Authorization: access_token'
响应格式说明
正常返回结果:
{
"code": "0",
"message": "Update todo task successfully.",
"data": {
"uuid": "477649379134554112",
"appName": "待办21",
"applicantUserId": "",
"applicantUserNameCn": "",
"applicantUserNameEn": "",
"detailsUrl": "https://yourdomain.com",
"taskDesc": "这是一个描述信息221",
"taskId": "254",
"taskTitle": "这是todo6标题",
"userId": "chanjun@wellcehn",
"tenantId": "7B872877862E4A22BC8CBC06C902E045",
"lastModifyTime": "2020-05-09 16:49:32",
"createTime": "2020-05-09 16:49:32"
}
}
异常返回结果:
{
"code": "55002",
"message": "You haven't the permission to request this operation.",
"data": "You haven't the permission to request this operation."
}
错误码说明:
错误码 | 说明 |
---|---|
0 | 成功 |
55008 | Update todo task failed. |
55002 | You haven't the permission to request this operation |
55006 | Request parameters validate failed. |
55005 | the client missing required parameters. |
55000 | authorazation failed. |
55004 | server exception. |
55011 | 非法更新电子流 |
55012 | 认证服务异常 |
55014 | token认证失败 |