SiYuan icon

SiYuan

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

Database → Add Column

AI-generated

Summary

Add a column to a SiYuan database (AttributeView), choosing its display name and type. Optionally place it after an existing column; leave Previous Column ID blank to append it at the end.

Inputs

  • AV ID (required) — The database AttributeView ID (the data-av-ID), not the database block ID. Use the List operation to find it.
  • Column Name (required) — Display name for the new column.
  • Column Type (required) — SiYuan column type: Checkbox, Date, Email, Multi-Select, Number, Phone, Select, Text, or URL. Defaults to Text.
  • Previous Column ID — ID of the column to insert the new column after. Leave blank to append it.

Output shape

A single record

Returns the AV ID, generated column key ID, column name, and type: { avID, keyID, name, type }. The operation changes the database schema.

Links

Discussion