younifyd
Menu

Assign Content Item Locales

Assigning locales to Content Items

POST/content-items/{contentItemId}/locale

Use it in a workflow

  1. Add a step and choose the Amplience connector.
  2. Pick the Assign Content Item Locales action (under Localization).
  3. Fill in the fields below, then reference the result from later steps as {{assignContentItemLocales.response.data}}.

Request

Path parameters

contentItemIdstringrequired

Content Item ID

Request body

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

localestringrequired

Locale

versionnumberrequired

Version

json
{
  "locale": "en-GB",
  "version": 1
}

Response

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

idstring (UUID)

ID

contentRepositoryIdstring

ID

bodyobject
_metaobjectrequired2 fields
labelstring

Label

folderIdstring

Folder ID

assigneesarray<any>

Assignees

assignedDatestring (date-time)

Created Date

localestring

Locale

versioninteger

Version number (starts at 1)

statusstring

Status

One ofACTIVEARCHIVEDDELETED

createdBystring (uuid)

Created by User Id

createdDatestring (date-time)

Created Date

lastModifiedBystring (uuid)

Last Modified by User Id

lastModifiedDatestring (date-time)

Last Modified Date

lastPublishedDatestring (date-time)

Last Published Date

lastPublishedVersioninteger

Last Published Version

lastUnpublishedDatestring (date-time)

Last Unpublished Date

lastUnpublishedVersioninteger

Last Unpublished Version

publishingStatusstring

Publishing Status

One ofNONEEARLYLATESTUNPUBLISHED

deliveryIdstring (UUID)

ID

workflowobject
statestring

Workflow State ID

_linksobject

Resource HAL links

selfany
content-itemany
plannedany
publishany
unpublishany
linked-contentany
content-item-with-childrenany
content-item-with-parentsany
updateany
restore-versionany
content-repositoryany
content-item-versionany
content-item-versionsany
content-item-historyany
copyany
unarchiveany
archiveany
set-delivery-keyany
set-localeany
create-localizationsany
localizationsany
localization-jobsany
edition-slot-associationsany
edit-workflowany
json
{
  "id": "00112233-4455-6677-8899-aabbccddeeff",
  "contentRepositoryId": "00112233445566778899aabb",
  "body": {
    "_meta": {
      "name": "main-banner",
      "schema": "http://example.com/banner.json"
    },
    "heading": "Buy more stuff!!",
    "link": "http://anyafinn.com/buymore?campaign=shouting"
  },
  "label": "Banner Ad Homepage",
  "folderId": "00112233445566778899aabb",
  "assignees": [
    "00112233445566778899aabb"
  ],
  "assignedDate": "2019-01-01T00:00:00.000Z",
  "locale": "en-GB",
  "version": 1,
  "status": "ACTIVE",
  "createdBy": "00112233-4455-6677-8899-aabbccddeeff",
  "createdDate": "2019-01-01T00:00:00.000Z"
}

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