SiYuan icon

SiYuan

Manage SiYuan notebooks, documents, blocks, attributes, and more. Designed for AI agent workflows.

Block → Update

AI-generated

Summary

Replace the content of an existing SiYuan block using Markdown or DOM (HTML) data. The operation sends the block ID and content to SiYuan’s block update endpoint.

Inputs

  • Block ID (required) — Unique ID of the block to update.
  • Content (Markdown) (required) — Content to replace the block’s existing content with.
  • Data Type — Choose Markdown (default) or DOM (HTML) as the content format.

Output shape

The SiYuan API response for updating the block.

The node returns the endpoint response as JSON; the source does not define a more specific result shape. With Continue On Fail enabled, errors are returned as an object containing error, operation, endpoint, and suggestion.

Links

Discussion