SiYuan icon

SiYuan

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

Database → Create

AI-generated

Overview

This node operation creates a new database within the SiYuan workspace. It is useful for users who want to programmatically manage databases (AttributeView blocks) in SiYuan, such as adding structured data tables to their notes or documents. For example, a user can create a new database linked to a specific parent block (like a document) to organize information in a tabular format.

Use Case Examples

  1. Create a new database attached to a specific document by providing the parent block ID.
  2. Automate the creation of multiple databases for different projects or topics within SiYuan.

Properties

Name Meaning
Parent Block ID The ID of the parent block (typically a document) to append the new database to

Output

JSON

  • success - Indicates whether the database creation operation was successful
  • data - Contains details of the created database, if applicable

Dependencies

  • Requires SiYuan API URL and API token credentials for authentication.

Troubleshooting

  • Ensure that the SiYuan API URL and token are correctly set in the node credentials; missing or incorrect credentials will cause an error.
  • If the parent block ID is invalid or does not exist, the database creation will fail.
  • Unsupported resource or operation errors occur if the resource or operation parameters are incorrect.

Discussion