更新待办任务


更新单个待办任务。

请求格式说明

请求方式:

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": true
}

异常返回结果:

{
    "code": "55002",
    "message": "You haven't the permission to request this operation.",
    "data": "You haven't the permission to request this operation."
}

错误码说明:

参数 说明
code 响应编码
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.
message 错误消息
data true:更新成功 false:无更新记录或更新失败

result. ""

    Not Found. ""