企业微信(WeCom)-办公 icon

企业微信(WeCom)-办公

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

Actions259

文档 → [智能表格] 添加视图

AI-generated

Summary

Create a view in a WeCom smart sheet, choosing its display type and, for calendar or Gantt views, supplying the corresponding view properties as JSON.

Inputs

  • 文档ID (docid) (required) — The smart sheet document ID.
  • 子表ID (sheet_id) (required) — The ID of the sheet within the document.
  • 视图名称 (view_title) (required) — Name for the view; the UI description specifies a maximum of 255 characters.
  • 视图类型 (view_type) (required) — Choose table, kanban, gallery, Gantt, or calendar view. Defaults to table view.
  • 视图属性JSON (viewExtraJson) — Optional JSON for official property_gantt or property_calendar settings. The UI description says Gantt and calendar views require their corresponding properties; the example calendar settings identify start and end date field IDs.

Output shape

A single API response item for the created view.

The provided source pack shows only the execution function signature for this operation, not its body, so it does not establish the exact response fields or wrapper shape.

Links

Discussion