Actions71
- Asset Actions
- Attribute Actions
- Block Actions
- Database Actions
- Document Actions
- Markdown Table Actions
- Notebook Actions
- Search Actions
- System Actions
- Tag Actions
Block → Prepend
AI-generatedOverview
This node operation allows users to prepend content blocks within a parent block in SiYuan notebooks or documents. It is useful for adding new content at the beginning of an existing block, such as inserting introductory text or notes before existing content. For example, a user can prepend a Markdown block to a document to add a summary or important notice at the top.
Use Case Examples
- Prepend a Markdown block with introductory text to a document block.
- Add a new content block at the start of a container block in a notebook.
Properties
| Name | Meaning |
|---|---|
| Parent Block ID | The ID of the parent block (document or container block) to add content into. |
| Content (Markdown) | The Markdown content for the block to prepend. |
| Additional Options.Data Type | The format of the content, either Markdown or DOM (HTML). Defaults to Markdown. |
Output
JSON
success- Indicates whether the prepend operation was successful.
Dependencies
- Requires SiYuan API URL and API token credentials for authentication.
Troubleshooting
- Ensure the Parent Block ID is valid and exists in the SiYuan workspace.
- Verify that the API URL and token credentials are correctly configured and have necessary permissions.
- Common error: 'SiYuan API URL and Token are required.' means credentials are missing or invalid.
- If the resource or operation is unsupported, an error will be thrown indicating the unsupported resource.