日程接口更新日程
POST
/cgi-bin/oa/schedule/update
服务端API企业内部开发第三方应用开发
不可更新组织者和日程所属日历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
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location -g --request POST 'https://qyapi.weixin.qq.com/cgi-bin/oa/schedule/update?access_token=' \
--header 'Content-Type: application/json' \
--data-raw '{
"skip_attendees ": 0,
"op_mode": 1,
"op_start_time": 1571274600,
"schedule": {
"admins":[
"admin1",
"admin2"
],
"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",
}
}'
响应示例响应示例
{
"errcode": 0,
"errmsg": "ok",
"schedule_id": "17c7d2bd9f20d652840f72f59e796AAA"
}
请求参数
Query 参数
access_token
调用接口凭证
示例值:
{{accesstoken}}
Body 参数application/json