企业微信(WeCom)-办公 icon

企业微信(WeCom)-办公

企业微信办公功能 - 文档、微盘、邮件、日程、待办、会议、直播、打卡、审批、汇报、人事、会议室、紧急通知、公费电话

Actions298

文档 → [智能文档] 更新页面

AI-generated

Summary

更新智能文档页面信息

Inputs

  • docid (required) — 智能文档的唯一标识,可通过“新建文档”获取
  • page_id (required) — 要更新的页面唯一标识,可通过“获取页面结构”获取
  • page_title — 新的页面标题,留空则不修改
  • page_parent_id — 父页面 ID,用于添加子页面或移动页面
  • page_after_id — 要插入在其之后的页面 ID,留空表示插入到最前
  • layout_mode — 页面布局模式,0=不设置,1=默认,2=纸张布局,3=全宽布局

Output shape

JSON object indicating success, containing the updated page's ID and possibly layout or parent info

On success the response includes the updated page details; on failure it returns an error JSON with weCom error code and message

Examples

Example 1: 在已有智能文档中更新子页面标题并改变布局

docid: '12345', page_id: '6789', page_title: '新标题', layout_mode: 3

Example 2: 将新页面插入到指定页面之后

docid: '12345', page_id: '6789', page_after_id: '54321'

Links

Discussion