---
title: "Update Locale"
method: PATCH
path: "/v2/locales/{localeIdOrCode}"
tags: ["locale"]
---

# Update Locale

`PATCH /v2/locales/{localeIdOrCode}`

Updates an existing locale.

## Path parameters

- `localeIdOrCode` string, required

## Query parameters

- `siteId` string, uuid

## Headers

- `x-api-key` string, required

## Request body

- UpdateSiteLocaleV2RequestBodyDto
  - `locale` string — Locale of the site locale.
  - `domain` string, uri, nullable — The domain URL for domain-based localization. This URL must include the protocol.

## Response `200`

- UpdateSiteLocaleV2ResponseBodyDto
  - `object` 'locale', required
  - `id` string, uuid, required — The ID of the updated 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`
- `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)
