---
title: "Restore bucket"
method: POST
path: "/v2/_/buckets/{bucket}/restore"
tags: ["ledger.v2"]
---

# Restore bucket

`POST /v2/_/buckets/{bucket}/restore`

Restore a deleted bucket by unmarking all ledgers in the bucket as deleted. All ledgers in the bucket will have their deleted_at field set to NULL.

## Response `204`

Bucket restored

## Other responses

- `404` — Bucket not found
- `default` — Error

## Changes

- **2025-12-12** `2945092328b9` — 4 warning
  - added the new `SCHEMA_ALREADY_EXISTS` enum value to the `errorCode` response property for the response status `404`
  - added the new `SCHEMA_ALREADY_EXISTS` enum value to the `errorCode` response property for the response status `default`
  - added the new `SCHEMA_NOT_SPECIFIED` enum value to the `errorCode` response property for the response status `404`
  - added the new `SCHEMA_NOT_SPECIFIED` enum value to the `errorCode` response property for the response status `default`
- **2025-11-18** `2b3c4224170c` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/formancehq/apis/ledger-api/changes/v2/_/buckets/:bucket/restore/post.md)

---

[API](https://skmtc.dev/formancehq/apis/ledger-api.md) · [All operations](https://skmtc.dev/formancehq/apis/ledger-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/formancehq/ledger-api/revisions/a0dfa3b73bf8/schema)
