SiYuan icon

SiYuan

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

Attribute → Set

AI-generated

Summary

Set built-in or custom attributes on a SiYuan block. Provide the block ID and one or more name/value pairs; custom attribute names must start with custom-.

Inputs

  • Block ID (required) — Unique ID of the block to update.
  • Attributes (required) — One or more name/value pairs. Built-in names include title, name, alias, memo, bookmark, and icon; custom names must start with custom-. Names that are blank are skipped, and unsupported names are filtered out.

Output shape

The SiYuan API response data for setting the block attributes; if the API returns no data, the node outputs { "success": true }.

Attributes are sent together in a single request to SiYuan. The operation overwrites the supplied attribute values; it does not return the updated attribute record.

Links

Discussion