When versions are created
- Version 1 is created when the processing pipeline completes (or on first approval in review mode).
- Subsequent versions are created when you approve a shelf in review mode with file operations (
rename,delete,mkdir,write).
Numbering
Versions use sequential integers starting at 1. ThecurrentVersionNumber field on the shelf response always reflects the latest version.
Accessing versions
| Endpoint | Description |
|---|---|
GET /v1/shelves/{id}/versions | List all versions for a shelf |
GET /v1/shelves/{id}/versions/{version}/tree | Get the file tree for a specific version |
GET /v1/shelves/{id}/versions/{version}/files/* | Read a file from a specific version |
GET /v1/shelves/{id}/diff?from=1&to=2 | Compare two versions (unified diff) |
ready.
Current vs. versioned access
The existing/tree and /files/* endpoints return the current (latest) state of the shelf. Version endpoints let you access the file tree and contents as they existed at any previous version.