---
title: "POST /b/{bucket}/o/{object}/restore"
method: POST
path: "/b/{bucket}/o/{object}/restore"
tags: ["objects"]
---

# POST /b/{bucket}/o/{object}/restore

`POST /b/{bucket}/o/{object}/restore`

Restores a soft-deleted object.

## Path parameters

- `bucket` string, required
- `object` string, required

## Query parameters

- `generation` string, required
- `copySourceAcl` boolean
- `ifGenerationMatch` string
- `ifGenerationNotMatch` string
- `ifMetagenerationMatch` string
- `ifMetagenerationNotMatch` string
- `projection` 'full' | 'noAcl'
- `restoreToken` string
- `userProject` string

## Response `200`

Successful response

---

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