patch https://example.com/settings/v1/locales/configuration
Update available locales and/or the system default locale.
Locale codes are lowercase formatted and using '-' between country code and language, for example: 'en-us'.
If the availableLocales was provided it must contain the system locale en-us because it cannot be removed.
IF 'defaultLocale' was provided it must be exist in the availableLocales list.
If availableLocales is not provided the default locale must be exist before setting it as default
Request Body Parameters:
Parameter | Type | Mandatory | Description | Example |
---|---|---|---|---|
availableLocales | array | false | List of objects containing locales. Locale in the following format: {language-ISO639}-{countryCode-ISO3166} lowercase. | [{code=en-us}] |
defaultLocaleCode | string | false | Locale in the following format: {language-ISO639}-{countryCode-ISO3166} lowercase. | en-us |
This API requires SETTINGS_UPDATE_LOCALES permission(s).