企业微信(WeCom)-办公 icon

企业微信(WeCom)-办公

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

Actions298

文档 → [智能文档] 添加页面

AI-generated

Summary

Add a page to a smart document.

Inputs

  • wedocPermissionNotice — 提示需要将应用配置到「协作 - 文档 - 可调用接口的应用」
  • docid (required) — 智能文档的 docid,可通过“新建文档”(文档类型选智能文档)获得
  • page_title — 更新页面标题,更新时留空表示不修改
  • page_parent_id — 父页面ID,添加子页面或移动页面时填写;添加页面时留空表示第一层页面
  • page_after_id — 排在哪个页面之后,填写页面 ID;添加时留空表示插入到最前,更新时留空表示不调整位置
  • layout_mode — 页面布局模式, 0=不设置, 1=默认布局, 2=纸张布局, 3=全宽布局

Output shape

a JSON object representing the created or updated page, typically containing the page ID and status

On success the response includes the new page identifier; on failure an error envelope is returned.

Examples

Example 1: Add a sub‑page under an existing document

docid: '12345', page_parent_id: '67890', page_title: '我的新页面', layout_mode: 1

Example 2: Create a top‑level page in the document

docid: '12345', page_title: '首页', layout_mode: 0

Links

Discussion