Locales client

A locale is a culture code that consists of a two-letter language code and a two-letter region code. A content item can be assigned a locale or it can have no locale (that is, have a null locale). A content item is uniquely identified by its ID and locale value (either language-region code or null value): two content items cannot have the same ID and the same locale value. A content item and a localization might have the same ID, but their locales will differ.

Method

Description

GET /api/content/v1/locales

Retrieves the locales.

GET /api/content/v1/locales/<LOCALE_ID>

Retrieves a locale with a specific ID.

POST /api/content/v1/locales

Creates a new locale.

PUT /api/content/v1/locales/<LOCALE_ID>

Updates the name of a specific locale.

DELETE /api/content/v1/locales/<LOCALE_ID>

Deletes a specific locale.

GET /api/content/v1/locales/supported

Retrieves a list of supported locales.

The following example illustrates these methods:

Do you have some feedback for us?

If you have suggestions for improving this article,