Actions118
- Item Actions
- Activity Actions
- Asset Actions
- Authentication Actions
- Collection Actions
- Extension Actions
- Field Actions
- File Actions
- Folder Actions
- Permission Actions
- Preset Actions
- Relation Actions
- Revision Actions
- Role Actions
- Server Actions
- Setting Actions
- User Actions
- Utility Actions
- Webhook Actions
Revision → Get
AI-generatedOverview
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
- Fetching a revision of a document by its ID to review changes made over time.
- 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 revisionitem- The item or entity associated with the revisionchanges- Details of the changes made in this revisioncreated_by- User who created the revisioncreated_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
- Directus Revisions Documentation - Official documentation on how revisions work in Directus and how to interact with them via API.