Skip to main content
PATCH
/
v1
/
locales
/
{localeId}
Update Site Locale
curl --request PATCH \
  --url https://8511e6e5e351.ngrok-free.app/v1/locales/{localeId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "locale": "es-MX",
  "domain": "https://hearthfurniture.com.mx"
}'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "locale": "es-MX",
  "domain": "https://hearthfurniture.com.mx"
}

Authorizations

Authorization
string
header
required

The API key for the App (e.g. sk_eczMHVBY9fV6GYFhvs53qcnxq7yptlXL3ABKOZtn6dQ)

Path Parameters

localeId
string<uuid>
required

Body

application/json
locale
string

Locale of the site locale (e.g., es-MX for Mexican Spanish, fr-CA for Canadian French).

Example:

"es-MX"

domain
string

Domain of the site locale if using domain-based localization. Domain URL must include the protocol.

Example:

"https://hearthfurniture.com.mx"

Response

200 - application/json
id
string<uuid>
required
locale
string
required

Locale of the site locale (e.g., es-MX for Mexican Spanish, fr-CA for Canadian French).

Example:

"es-MX"

domain
null
required

Domain of the site locale if using domain-based localization. Domain URL must include the protocol.

Example:

"https://hearthfurniture.com.mx"