Actions71
- Asset Actions
- Attribute Actions
- Block Actions
- Database Actions
- Document Actions
- Markdown Table Actions
- Notebook Actions
- Search Actions
- System Actions
- Tag Actions
Database → Create
AI-generatedOverview
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
- Create a new database attached to a specific document by providing the parent block ID.
- 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 successfuldata- 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.