Directus (flagbit) icon

Directus (flagbit)

Consume Directus API

Revision → Get

AI-generated

Overview

This node retrieves a specific revision by its primary key (ID) from the Directus system. It is useful for scenarios where you need to access historical versions or changes of an item stored in Directus, such as auditing changes or restoring previous states.

Use Case Examples

  1. Fetching a revision of a document by its ID to review changes made over time.
  2. Accessing a specific revision to compare it with the current version of an item.

Properties

Name Meaning
ID Primary key of the revision to retrieve

Output

JSON

  • id - The unique identifier of the revision
  • item - The item or entity associated with the revision
  • changes - Details of the changes made in this revision
  • created_by - User who created the revision
  • created_on - Timestamp when the revision was created

Dependencies

  • Directus API or database access

Troubleshooting

  • Ensure the provided ID exists; otherwise, the node will fail to find the revision.
  • Check API credentials and permissions to access revision data in Directus.
  • Common error: 'Revision not found' indicates the ID does not correspond to any existing revision.

Links

Discussion