younifyd
Menu

Get Locale By Code

Get a locale

GET/api/rest/v1/locales/{code}

Use it in a workflow

  1. Add a step and choose the Akeneo connector.
  2. Pick the Get Locale By Code action (under Locale).
  3. Fill in the fields below, then reference the result from later steps as {{getLocaleByCode.response.data}}.

Request

Path parameters

codestringrequired

This path parameter is used to specify the unique identifier of the entity you want to retrieve or manipulate. It is essential for identifying the specific entity in the API requests. Ensure that the code is correctly formatted and corresponds to an existing entity in the system.

Response

Returns 200 with an object. Read it in later steps with {{getLocaleByCode.response.data.<field>}}.

codestring

Locale code

enabledboolean

Whether the locale is enabled

Default false

json
{
  "code": "en_US",
  "enabled": true
}

Need more? See the Akeneo guide for connection setup and behaviour shared by every action.