---
title: "Restore DNS snapshot"
method: POST
path: "/api/dns/v1/snapshots/{domain}/{snapshotId}/restore"
tags: ["DNS: Snapshot"]
---

# Restore DNS snapshot

`POST /api/dns/v1/snapshots/{domain}/{snapshotId}/restore`

Restore DNS zone to the selected snapshot.

Use this endpoint to revert domain DNS to a previous configuration.

## Path parameters

- `domain` string, required
- `snapshotId` integer, required

## Response `200`

Success response

- CommonSuccessEmptyResource
  - `message` string

## Other responses

- `401` — Unauthenticated response
- `500` — Error response

---

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