企业微信(WeCom)-办公 icon

企业微信(WeCom)-办公

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

Actions259

文档 → [管理文档内容] 编辑文档内容

AI-generated

Summary

Edit a WeCom document by applying an ordered list of content operations at specified indexes. Supply the document ID and optionally its version; operations can insert or delete content, replace text, add images, page breaks or tables, and update text formatting.

Inputs

  • 文档ID (docid) (required) — ID of the document to edit.
  • 操作的文档版本 (version) — Optional document version to edit; the UI description says it can be obtained from the document content endpoint and must be within 100 versions of the latest. Defaults to 0.
  • 操作列表 (requestsCollection) (required) — Ordered list of edits. Each entry selects an operation type: insert text, paragraph, image, page break, or table at a zero-based index; delete a range using its start index and length; replace text in specified ranges; or update text properties in specified ranges. Insert text requires text; image insertion accepts an image URL and pixel dimensions; table insertion accepts row and column counts. Text property options include bold, text color, and background color. The UI describes a maximum of 10 ranges for replacement.

Output shape

A single WeCom API response item for the document edit request.

The provided source pack exposes only function signatures for this operation, so the exact response fields are not visible.

Links

Discussion