创建日程
POST
https://open.teambition.com/api/agenda/create该接口用于创建日程。
请求参数
Header 参数
Content-Type
string
可选
示例值:
application/json
Body 参数application/json
creatorId
string
创建者的用户 ID
projectId
string
项目 ID
orgId
string
企业 ID
title
string
日程标题
content
string
备注
location
string
位置
startDate
string
开始时间
endDate
string
结束时间
participants
array[string]
可选
参与者的用户 ID 列表
tagIds
array[string]
标签列表
customfields
array [object {2}]
自定义字段列表
cfId
string
可选
value
array [object {1}]
自定义字段的值
visible
string
可选
可见性: participants:任务参与者可见 projectMembers:项目成员可见(默认值)
示例
{
"creatorId": "5ac4a9089f8f22000108241b",
"projectId": "5f0ecba0eea1701e1fbc6884",
"title": "晨会",
"content": "xxx",
"location": "shanghai",
"startDate": "2020-07-18T10:00:00Z",
"endDate": "2020-07-18T12:00:00Z",
"participants": [
"5ac4a9089f8f22000108241b"
],
"tagIds": [
"5eaa8dbc3fd06609bda44816"
],
"customfields": [
{
"cfId": "5f1146dd1c686bc841ca84f0",
"value": [
{
"title": "test"
}
]
}
],
"visible": "projectMembers"
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
必需
返回码,200 表示成功
errorMessage
string
必需
调用失败时的错误信息
result
object (result)
必需
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": "5f1148630adf3408ab7bb560",
"content": "xxx",
"created": "2020-07-17T06:42:43.452Z",
"creatorId": "5ac4a9089f8f22000108241b",
"customfields": [
{
"cfId": "5f1146dd1c686bc841ca84f0",
"value": [
{
"title": "test"
}
]
}
],
"endDate": "2020-07-18T12:00:00.000Z",
"isDeleted": 0,
"location": "shanghai",
"participants": [
"5ac4a9089f8f22000108241b"
],
"projectId": "5f0ecba0eea1701e1fbc6884",
"startDate": "2020-07-18T10:00:00.000Z",
"tagIds": [
"5eaa8dbc3fd06609bda44816"
],
"title": "晨会",
"updated": "2020-07-17T06:42:43.452Z",
"visible": "projectMembers"
}
}
最后修改时间: 3 年前