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

# Restore an archive

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

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.net/rudder/apis/rudder-api.md) · [All operations](https://skmtc.net/rudder/apis/rudder-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/rudder/rudder-api/revisions/eab988254fba/schema)
