---
title: "file_restore_version"
description: "Restores an earlier version by adding it as a new version of the same file, with `baseVersion` equal to the current version; preserves history."
---

| Tool | Kind | Purpose |
| :-- | :-- | :-- |
| `file_restore_version` | write | Restores an earlier version by adding it as a new version of the same file, with `baseVersion` equal to the current version; preserves history. If the current version already has the same bytes, media type and name, no version is added and the result says `unchanged: true`. |
