查询指定任务
GET
/open-apis/task/v1/tasks/{task_id}
自建应用商店应用
错误码
HTTP状态码 | 错误码 | 描述 | 排查建议 |
---|---|---|---|
403 | 1470403 | The identity token is incorrect. It should be either user_access_token or tenant_access_token. | 发起请求方的身份token不正确,需要为UserAccessToken或TenantAccessToken其中一种 |
400 | 1470602 | Invalid task id. | 请检查任务的 id 是否合法 |
400 | 1470432 | No permission to get the task. | 没有获取任务的权限,需要检查当前发起请求的对象是否有权限 |
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://open.feishu.cn/open-apis/task/v1/tasks/83912691-2e43-47fc-94a4-d512e03984fa?user_id_type=open_id' \
--header 'Authorization;'
响应示例响应示例
{
"code": 0,
"data": {
"task": {
"can_edit": true,
"collaborators": [
{
"id": "ou_842f5b9b4b8faa60570e9008acc9af1f"
}
],
"complete_time": "0",
"create_time": "1630304148",
"creator_id": "ou_05b67908bc5d12a086e909a076f7f1b6",
"description": "多吃水果,多运动,健康生活,快乐工作。",
"due": {
"time": "1623124318",
"timezone": "Asia/Shanghai"
},
"extra": "dGVzdA==",
"followers": [
{
"id": "ou_842f5b9b4b8faa60570e9008acc9af1f"
}
],
"id": "68c9b9ff-d5b5-41bf-b407-6d956f23143f",
"origin": {
"href": {
"title": "反馈一个问题,需要协助排查",
"url": "https://support.feishu.com/internal/foo-bar"
},
"platform_i18n_name": "{\"en_us\":\"IT Workspace\",\"zh_cn\":\"IT 工作台\"}"
},
"summary": "每天喝八杯水,保持身心愉悦",
"custom": "{\"custom_complete\":{\"android\":{\"href\":\"https://www.feishu.cn/\",\"tip\":{\"zh_cn\":\"你好\",\"en_us\":\"hello\"}},\"ios\":{\"href\":\"https://www.feishu.cn/\",\"tip\":{\"zh_cn\":\"你好\",\"en_us\":\"hello\"}},\"pc\":{\"href\":\"https://www.feishu.cn/\",\"tip\":{\"zh_cn\":\"你好\",\"en_us\":\"hello\"}}}}",
"update_time": "1630304149",
"source": 6,
"repeat_rule": "FREQ=WEEKLY;INTERVAL=1;BYDAY=MO,TU,WE,TH,FR"
}
},
"msg": "success"
}
请求参数
Path 参数
task_id
必需
示例值:
83912691-2e43-47fc-94a4-d512e03984fa
Query 参数
user_id_type
必需
示例值:
open_id
Header 参数
Authorization
string
必需
默认值:
Bearer {{access_token}}
返回响应
修改于 2023-02-02 07:51:16