younifyd
Menu

Upsert Language Variant By Id

Upsert a language variant (item ID)

PUT/v2/projects/{environment_id}/items/{item_id}/variants/{language_id}

Use it in a workflow

  1. Add a step and choose the Kontent.ai connector.
  2. Pick the Upsert Language Variant By Id action (under Language Variants).
  3. Fill in the fields below, then reference the result from later steps as {{upsertLanguageVariantById.response.data}}.

Request

Path parameters

environment_idstringrequired

Environment (project) ID.

item_idstringrequired

Internal ID (GUID) of the item.

language_idstringrequired

Internal ID (GUID) of the language.

Request body

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

elementsarray<object>
workflowobject
custom_elementsarray<object>
json
{
  "elements": [
    {}
  ],
  "workflow": {},
  "custom_elements": [
    {}
  ]
}

Response

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

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