Create Locale

Creates a new locale for a site.

Authentication

x-api-keystring
API key authentication. Accepts either: - App API key (e.g. sk_eczMHVBY9fV6GYFhvs53qcnxq7yptlXL3ABKOZtn6dQ) - Site API key (UUID format, e.g. 550e8400-e29b-41d4-a716-446655440000)

Request

This endpoint expects an object.
siteIdstringRequiredformat: "uuid"
The site ID to create the locale for.
localestringRequired
Locale of the site locale.
domainstringOptionalformat: "uri"

The domain URL for domain-based localization. This URL must include the protocol.

Response

objectenum
Allowed values:
idstringformat: "uuid"
The ID of the created locale.
localestring
We support the subset of locales specified with ISO 3166 that are composed of language and optionally a region.
domainstring or nullformat: "uri"

The domain URL for domain-based localization.

isDefaultboolean
The flag that indicates whether this locale is the default locale for the site.

Errors