---
title: "Restore repository from a dump in the object store"
method: POST
path: "/repositories/{repository}/restore"
tags: ["repositories"]
---

# Restore repository from a dump in the object store

`POST /repositories/{repository}/restore`

## Request body

- RefsRestore
  - `commits_meta_range_id` string, required
  - `tags_meta_range_id` string, required
  - `branches_meta_range_id` string, required
  - `force` boolean

## Response `202`

restore task created

- TaskInfo
  - `id` string, required — ID of the task

## Other responses

- `400` — Validation Error
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Resource Not Found
- `default` — Internal Server Error

---

[API](https://skmtc.net/treeverse/apis/lakefs-api.md) · [All operations](https://skmtc.net/treeverse/apis/lakefs-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/treeverse/lakefs-api/revisions/4617f80bee61/schema)
