飞书 icon

飞书

飞书 API 集成,支持多种飞书功能

Actions112

云文档 → 更新块的内容

AI-generated

Summary

Updates the content of a specified block in a Feishu document by sending the supplied JSON request body to the block update endpoint. Use one input item per update; batching can run these requests concurrently.

Inputs

  • 凭证类型 — Choose user-level or app-level Feishu credentials; app-level credentials are selected by default.
  • 文档 ID (required) — The unique ID of the document.
  • 父块 ID (required) — The block ID to update. The UI describes this as a parent block ID and says to use the document ID when targeting the document tree root.
  • 文档版本 — Document revision to use; defaults to -1, meaning the latest revision.
  • 操作的唯一标识 — Optional idempotency token for the update. An empty value sends a new request; a non-empty value lets Feishu identify a retry of the same operation.
  • 用户 ID 类型 — Select open_id, union_id, or user_id. Defaults to open_id.
  • 请求体JSON — JSON request body for the Feishu block content update API; defaults to {}. Supply the block content fields required for the update.
  • Options — Batching, when added, enables concurrent requests for input items; defaults to 50 items per batch, with a 0 ms interval between batches. Timeout defaults to 0 (no timeout).

Output shape

A list of n8n items containing the Feishu API response for each input item.

Requests run serially unless batching is added. With Continue On Fail enabled, failed items are returned as {"error":"..."}; otherwise a request error stops execution. The API response is unwrapped to its data payload when present.

Links

Discussion