查询日程
POST
https://open.teambition.com/api/agenda/query该接口用于查询日程。
请求参数
Header 参数
Content-Type
string
可选
示例值:
application/json
Body 参数application/json
conds
object
必需
projectId
string
项目 ID
field19orgId
string
企业 ID
示例
{
"conds": {
"projectId": "5f114c208de9989edf6faf63"
}
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
必需
返回码,200 表示成功
errorMessage
string
必需
调用失败时的错误信息
result
array[object (customfields2) {15}]
必需
agendaId
string
日程 ID
content
string
日程备注
created
string
项目创建时间
creatorId
string
创建者 ID
customfields
array[object (customfields) {2}]
自定义字段列表
endDate
string
截止时间
isDeleted
integer
是否删除
location
string
地点
participants
array[string]
必需
参与者的用户 ID 列表
projectId
string
项目 ID
startDate
string
开始时间
tagIds
array[string]
标签列表
title
string
日程标题
updated
string
最近一次更新时间
visible
string
必需
可见性: participants:任务参与者可见 projectMembers:项目成员可见(默认值)
示例
{
"code": 200,
"errorMessage": "",
"result": [
{
"agendaId": "5f1151c3f4594639a62ba765",
"content": "",
"created": "2020-07-17T07:22:43.568Z",
"creatorId": "5ac4a9089f8f22000108241b",
"customfields": [],
"endDate": "2020-07-17T08:30:00.000Z",
"isDeleted": 0,
"location": "",
"orgId": null,
"participants": [
"5ac4a9089f8f22000108241b"
],
"projectId": "5f114c208de9989edf6faf63",
"startDate": "2020-07-17T07:30:00.000Z",
"tagIds": [],
"templateId": "5f114c201c686bc841ca84fa",
"title": "日程1",
"updated": "2020-07-17T07:22:43.568Z",
"visible": "projectMembers"
},
{
"agendaId": "5f1151da0aab42dceb734473",
"content": "",
"created": "2020-07-17T07:23:06.795Z",
"creatorId": "5ac4a9089f8f22000108241b",
"customfields": [],
"endDate": "2020-07-17T10:00:00.000Z",
"isDeleted": 0,
"location": "",
"orgId": null,
"participants": [
"5ac4a9089f8f22000108241b"
],
"projectId": "5f114c208de9989edf6faf63",
"startDate": "2020-07-17T09:00:00.000Z",
"tagIds": [],
"templateId": "5f114c201c686bc841ca84fa",
"title": "日程2",
"updated": "2020-07-17T07:23:06.795Z",
"visible": "projectMembers"
}
]
}
最后修改时间: 3 年前