younifyd
Menu

Create Locale

Create a locale

POST/spaces/{spaceId}/environments/{environmentId}/locales

Use it in a workflow

  1. Add a step and choose the Contentful connector.
  2. Pick the Create Locale action (under Contentful Content Management API).
  3. Fill in the fields below, then reference the result from later steps as {{createLocale.response.data}}.

Request

Path parameters

spaceIdstringrequired

ID of the space

environmentIdstringrequired

ID of the environment

Request body

Enter the body as JSON in the step's Body field.

codestringrequired

Locale code (e.g., en-US, de-DE)

contentDeliveryApiboolean

Whether this locale is available in the content delivery API

Default true

contentManagementApiboolean

Whether this locale is available in the content management API

Default true

defaultboolean

Whether this is the default locale

Default false

fallbackCodestring

Code of the locale to use as a fallback

namestringrequired

Human readable name of the locale

optionalboolean

Whether this locale is optional for content

Default false

json
{
  "code": "string",
  "name": "string",
  "contentDeliveryApi": true,
  "contentManagementApi": true,
  "default": false,
  "fallbackCode": "string",
  "optional": false
}

Response

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

codestring

Locale code (e.g., en-US, de-DE)

contentDeliveryApiboolean

Whether this locale is available in the content delivery API

contentManagementApiboolean

Whether this locale is available in the content management API

defaultboolean

Whether this is the default locale

fallbackCodestring

Code of the locale to use as a fallback

namestring

Human readable name of the locale

optionalboolean

Whether this locale is optional for content

sysobject
idstringrequired

Resource ID

typestringrequired

Resource type

environmentobject1 fields
spaceobjectrequired1 fields
createdByobjectrequired1 fields
updatedByobject1 fields
updatedAtstring (date-time)

Last update timestamp

versioninteger (int64)required

Resource version

json
{
  "code": "string",
  "contentDeliveryApi": false,
  "contentManagementApi": false,
  "name": "string",
  "optional": false,
  "sys": {
    "id": "string",
    "type": "string",
    "space": {
      "sys": {
        "id": "string",
        "type": "string",
        "linkType": "string"
      }
    },
    "createdBy": {
      "sys": {
        "id": "string",
        "type": "string",
        "linkType": "string"
      }
    },
    "version": 0,
    "environment": {
      "sys": {
        "id": "string",
        "type": "string",
        "linkType": "string"
      }
    },
    "updatedBy": {
      "sys": {
        "id": "string",
        "type": "string",
        "linkType": "string"
      }
    },
    "updatedAt": "2025-01-01T00:00:00Z"
  },
  "default": false,
  "fallbackCode": "string"
}

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