删除待办任务


删除单个待办任务。

请求格式说明

请求方式:

DELETE(https)

认证方式: access_token,请参考获取access_token

请求地址:

https://open.welink.huaweicloud.com/api/todo/v1/deltask

请求头部:

x-wlk-Authorization:access_token

请求参数说明:

参数 参数类型 说明 是否必填
taskId string 租户应用任务id

请求示例:


curl –X DELETE 
'https://open.welink.huaweicloud.com/api/todo/v1/deltask?taskId=5' 
-H 'x-wlk-Authorization: access_token'

响应格式说明

正常返回结果:

{
    "code": "0",
    "message": "Delete 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:成功
55009:Delete 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. ""