批量更新待办任务
标签:待办
请求说明
字段 | 值 |
---|---|
请求地址 | https://openapi.wps.cn/v7/todo/tasks/batch_update |
HTTP 方法 | POST |
接口描述 | 批量更新待办任务 |
签名方式 | KSO-1 |
限频策略 | 无 |
权限要求 | 操作待办信息(应用授权) kso.task.readwrite |
请求头 (Headers)
属性名 | 类型 | 是否必填 | 描述 | 可选值 |
---|---|---|---|---|
Content-Type | string | 是 | 使用:'application/json' | - |
X-Kso-Date | string | 是 | RFC1123 格式的日期,例: 'Wed, 23 Jan 2013 06:43:08 GMT' | - |
X-Kso-Authorization | string | 是 | KSO-1 签名值 | - |
Authorization | string | 是 | 授权凭证,格式为:'Bearer {access_token}' | - |
请求体(Body)
请求体格式: application/json
没有可用的数据
请求体示例
json
{
"update_tasks": [
{
"data": {
"actions": [
{
"key": "string",
"link": {
"mobile_url": "string",
"pc_url": "string"
},
"modal": {
"desc": "string",
"required": true,
"title": "string"
},
"style": "normal",
"text": "string"
}
],
"category_id": "string",
"description": "string",
"display_time": 0,
"due_time": 0,
"ext_attrs": [
{
"name": "string",
"value": "string"
}
],
"finish_time": 0,
"is_read": true,
"link": {
"mobile_url": "string",
"pc_url": "string"
},
"notify_config": {
"reminders": [
{
"before_due_time": 0
}
],
"switch": true
},
"priority": 0,
"status": "todo",
"tags": [
"string"
],
"title": {
"prefix": "string",
"subject": "string"
}
},
"task_id": "string"
}
]
}
响应体(Response)
HTTP状态码: 200
响应体格式: application/json
没有可用的数据
响应体示例
json
{
"code": 0,
"msg": "string"
}