企业微信(WeCom)-办公 icon

企业微信(WeCom)-办公

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

Actions298

文档 → [智能文档] 更新内容块

AI-generated

Summary

更新智能文档内容块

Inputs

  • docid (required) — 智能文档的 docid,可通过“新建文档”(文档类型选智能文档)获得
  • page_id (required) — 可通过“获取页面结构”获得
  • blocks_json (required) — BlockInfo 数组:id 必填,其余字段只传需要修改的部分

Output shape

a JSON object representing the updated document or a success response

If the operation fails, an error object is returned; otherwise the response contains the updated block information.

Examples

Example 1: 在工作流中更新智能文档的某个内容块以反映最新的 KPI 数据

docid 设为 "12345",page_id 设为 "6789",blocks_json 设为 "[\n {\n "id": "BLOCK_ID",\n "title": "Updated Content"\n }\n]"

Links

Discussion