Create Locale

contentful.create_locale
ActionBusiness appsconnection required

Calls the Contentful API with the connection's credentials.

Add a locale to an environment so content can be translated into it.

Connection

Required
Yes — the node will not save without one
Auth type
Bearer token
Providers
Contentful
Secret shape
the CMA access token, or {"access_token": "…"}
Config it needs
space_id, environment_id, base_url
Resolved by
config.connection_id, else node.connection_id

Configuration

8 fields, 2 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.

FieldTypeRequiredDefaultConstraintsExample
name
The locale's display name, such as 'German (Germany)'.
stringYes———
code
The locale code, such as 'de-DE'.
stringYes———
fallback_code
The locale to fall back to when a field is empty here, such as 'en-US'.
stringNo———
optional
Whether entries may leave required fields empty in this locale.
booleanNofalse——
content_delivery_api
Whether content in this locale is served by the delivery API.
booleanNotrue——
content_management_api
Whether this locale can be edited through the management API.
booleanNotrue——
space_id
The space to act on. Leave blank to use the connection's space.
stringNo———
environment_id
The environment to act on. Leave blank to use the connection's environment, or 'master'.
stringNo———

Example configuration

Every value below is the contract’s own example or default — nothing invented.

{
  "content_delivery_api": true,
  "content_management_api": true,
  "optional": false
}

Output

One shape.

result

FieldTypeExample
sys.id
The locale id.
string—
sys.version
The locale's version after this call.
number—
name
The locale's display name.
string—
code
The locale code, such as 'en-US'.
string—
fallbackCode
The locale content falls back to, or null when there is none.
string—
default
Whether this is the environment's default locale.
boolean—
{
  "code": "",
  "default": false,
  "fallbackCode": "",
  "name": "",
  "sys": {
    "id": "",
    "version": 0
  }
}

See Create Locale run in a workflow.

In a technical demo we add the Contentful connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.