---
title: "Restore Locale"
method: POST
path: "/v2/locales/{localeIdOrCode}/restore"
tags: ["locale"]
---

# Restore Locale

`POST /v2/locales/{localeIdOrCode}/restore`

Restores a previously deleted locale.

## Path parameters

- `localeIdOrCode` string, required

## Query parameters

- `siteId` string, uuid

## Headers

- `x-api-key` string, required

## Response `200`

Locale successfully restored.

- RestoreSiteLocaleV2ResponseBodyDto
  - `object` 'locale', required
  - `id` string, uuid, required — The ID of the restored locale.
  - `locale` string, required — We support the subset of locales specified with ISO 3166 that are composed of language and optionally a region.
  - `domain` string, uri, nullable, required — The domain URL for domain-based localization.
  - `pathPrefix` string, nullable, required — Custom URL path prefix. Null means the locale code is used as the default prefix.
  - `isDefault` boolean, required — The flag that indicates whether this locale is the default locale for the site.

## Other responses

- `400`
- `403`
- `404`
- `409`

---

[API](https://skmtc.net/makeswift/apis/rest.md) · [All operations](https://skmtc.net/makeswift/apis/rest/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/makeswift/rest/versions/9e0c72b4d151/schema)
