SiYuan icon

SiYuan

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

Search → Get Recent Changes

AI-generated

Overview

This node operation fetches recent changes from the SiYuan database. It is useful for workflows that need to track or respond to recent modifications in documents or other data within SiYuan. For example, it can be used to monitor updates for synchronization, auditing, or triggering further automation based on recent edits.

Use Case Examples

  1. Retrieve the last 50 recent changes to documents to update an external system.
  2. Fetch recent changes since a specific timestamp to process only new or modified data.

Properties

Name Meaning
Limit Maximum number of recent change results to return.
Since Optional timestamp to filter changes modified after this time (format: YYYYMMDDHHmmss).

Output

JSON

  • id - Unique identifier of the change event.
  • timestamp - Timestamp when the change occurred.
  • type - Type of change (e.g., document update, block modification).
  • details - Additional details about the change event.

Dependencies

  • SiYuan API URL and API Token credentials required for authentication.

Troubleshooting

  • Ensure the SiYuan API URL and token credentials are correctly set; missing or invalid credentials will cause authentication errors.
  • If the 'Since' timestamp is incorrectly formatted, the API may return errors or no results; use the format YYYYMMDDHHmmss.
  • Unsupported resource or operation errors occur if the resource or operation parameters are incorrect.

Discussion