企业微信(WeCom)-办公 icon

企业微信(WeCom)-办公

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

Actions298

文档 → [智能文档] 更新数据表

AI-generated

Summary

Updates a SmartSheet within a SmartDoc, optionally setting its title or position.

Inputs

  • docid (required) — 智能文档的 docid,可通过“新建文档”(文档类型选智能文档)获得
  • sheet_block_id (required) — 数据表所在的内容块 ID
  • sheet_title — 更新时留空表示不修改
  • sheet_after_id — 排在哪个数据表之后,填写其他数据表的 Block ID(不支持非数据表类型的内容块)

Output shape

a single updated Smartsheet object

Returns the updated sheet data; if no fields are changed, the response reflects the existing sheet unchanged.

Examples

Example 1: Update the title of an existing SmartSheet

docid: 'DOC_12345', sheet_block_id: 'block_abc', sheet_title: 'Q3 Financials'

Example 2: Insert a new SmartSheet after a specific sheet

docid: 'DOC_12345', sheet_block_id: 'block_abc', sheet_after_id: 'block_def'

Example 3: Leave the title unchanged while updating other properties

docid: 'DOC_12345', sheet_block_id: 'block_abc', sheet_title: ''

Links

Discussion