- 通讯录管理
- 客户联系
- 企业服务人员管理
- 客户管理
- 客户标签管理
- 在职继承
- 离职继承
- 客户群管理
- 客户朋友圈
- 消息推送
- 统计管理
- 管理商 品图册
- 管理聊天敏感词
- 上传附件资源POST
- 家校沟通
- 微信客服
- 应用管理
- 消息推送
- OA
- 效率工具
- 家校应用
- 企业支付
- 企业互联
- 上下游
- 开发指南
- 自建应用代开发
日程接口更新日程
POST
http://127.0.0.1/cgi-bin/oa/schedule/update
第三方应用开发/效率工具/日程/日程接口
最后修改时间:2022-08-30 03:03:37
责任人:未设置
不可更新组织者和日程所属日历ID
is_custom_repeat 如果为0,那么系统会根据 start_time 和 repeat_type 来自动计算下一次重复的时间,例如:
start_time 为本月3号10点整,repeat_type 为每月重复,那么每月3号10点整重复;
原文档地址:
https://open.work.weixin.qq.com/api/doc/90000/90135/93648
https://open.work.weixin.qq.com/api/doc/90001/90143/93703
请求参数
Query 参数
access_token
string
调用接口凭证
示例值:
{{accesstoken}}
Body 参数application/json
schedule
object
日程信息
summary
string
可选
reminders
object
提醒相关信息
start_time
integer <int32>
可选
organizer
string
可选
attendees
array [object {1}]
可选
end_time
integer <int32>
可选
description
string
可选
location
string
可选
schedule_id
string
可选
示例
{
"schedule": {
"organizer": "userid1",
"schedule_id": "17c7d2bd9f20d652840f72f59e796AAA",
"start_time": 1571274600,
"end_time": 1571320210,
"attendees": [
{
"userid": "userid2"
}
],
"summary": "test_summary",
"description": "test_description",
"reminders": {
"is_remind": 1,
"remind_before_event_secs": 3600,
"is_repeat": 1,
"repeat_type": 7,
"repeat_until": 1606976813,
"is_custom_repeat": 1,
"repeat_interval": 1,
"repeat_day_of_week": [
3,
7
],
"repeat_day_of_month": [
10,
21
],
"timezone": 8
},
"location": "test_place"
}
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location -g --request POST 'http://127.0.0.1/cgi-bin/oa/schedule/update?access_token={{accesstoken}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"schedule": {
"organizer": "userid1",
"schedule_id": "17c7d2bd9f20d652840f72f59e796AAA",
"start_time": 1571274600,
"end_time": 1571320210,
"attendees": [
{
"userid": "userid2"
}
],
"summary": "test_summary",
"description": "test_description",
"reminders": {
"is_remind": 1,
"remind_before_event_secs": 3600,
"is_repeat": 1,
"repeat_type": 7,
"repeat_until": 1606976813,
"is_custom_repeat": 1,
"repeat_interval": 1,
"repeat_day_of_week": [
3,
7
],
"repeat_day_of_month": [
10,
21
],
"timezone": 8
},
"location": "test_place"
}
}'
返回响应
🟢200成功
application/json
Body
errcode
integer
必需
errmsg
string
必需
示例
{
"errcode": 0,
"errmsg": "string"
}
