What it does
Undo any file change by restoring to a prior version. This is the core undo operation. Call list_versions first to find the version ID, then restore to instantly revert. A new version is created with the restored content, so the restore itself is versioned and reversible.Required scope
versions:write
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
path | string | Yes | Path of the file to restore |
version_id | string | Yes | Target version ID to restore to (from list_versions output) |