---
title: "POST /v1/{+name}:revert"
method: POST
path: "/v1/{+name}:revert"
tags: ["projects"]
---

# POST /v1/{+name}:revert

`POST /v1/{+name}:revert`

Revert an existing instance's file system to a specified snapshot.

## Path parameters

- `name` string, required

## Request body

- RevertInstanceRequest — RevertInstanceRequest reverts the given instance's file share to the specified snapshot.
  - `targetSnapshotId` string — Required. The snapshot resource ID, in the format 'my-snapshot', where the specified ID is the {snapshot_id} of the fully qualified name like `projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}`

## Response `200`

Successful response

---

[API](https://skmtc.dev/google/apis/file.md) · [All operations](https://skmtc.dev/google/apis/file/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/google/file/revisions/f3d16365a416/schema)
