---
title: "Restore an archive"
method: POST
path: "/system/archives/{archiveKind}/restore/{archiveRestoreKind}"
tags: ["System"]
---

# Restore an archive

`POST /system/archives/{archiveKind}/restore/{archiveRestoreKind}`

## Request

- Base URL: `https://rudder.example.com/rudder/api/latest`
- URL: `https://rudder.example.com/rudder/api/latest/system/archives/{archiveKind}/restore/{archiveRestoreKind}`
- Auth: API key in header `X-API-Token`
- TypeScript: <https://skmtc.dev/rudder/apis/rudder-api/docs/system/archives/:archiveKind/restore/:archiveRestoreKind/post.ts> (a function with typed inputs; its response is checked against the schema)

Restore an archive of the given kind for the given moment

## Path parameters

- `archiveKind` 'full' | 'groups' | 'rules' | 'directives' | 'parameters', required
- `archiveRestoreKind` 'latestArchive' | 'latestCommit' | 'archive ID', required: What archive to restore (latest archive, latest commit in configuration repository, or archive with ID as given by listArchive)

## Response `200`

Success

- object
  - `result` 'success' | 'error', required: Result of the request
  - `action` 'restoreFullLatestArchive' | 'restoreGroupLatestArchive' | 'restoreRulesLatestArchive' | 'restoreDirectivesLatestArchive' | 'restoreParametersLatestArchive' | 'restoreFullLatestCommit' | 'restoreGroupLatestCommit' | 'restoreRulesLatestCommit' | 'restoreDirectivesLatestCommit' | 'restoreParametersLatestCommit' | 'archiveFullDateRestore' | 'archiveGroupDateRestore' | 'archiveRulesDateRestore' | 'archiveDirectivesDateRestore' | 'archiveParametersDateRestore', required: The kind of the archive
  - `data` object, required
    - `full` string
    - `groups` string
    - `rules` string
    - `directive` string
    - `parameters` string

---

[API](https://skmtc.dev/rudder/apis/rudder-api.md) - [All operations](https://skmtc.dev/rudder/apis/rudder-api/llms.txt) - [OpenAPI document](https://skmtc.dev/rudder/apis/rudder-api/revisions/bbd9e101212d?raw)
