younifyd
Menu

Update Content Item By Codename

Update a content item by codename

PUT/v2/projects/{environment_id}/items/codename/{item_codename}

Use it in a workflow

  1. Add a step and choose the Kontent.ai connector.
  2. Pick the Update Content Item By Codename action (under Content Items).
  3. Fill in the fields below, then reference the result from later steps as {{updateContentItemByCodename.response.data}}.

Request

Path parameters

environment_idstringrequired

Environment (project) ID.

item_codenamestringrequired

Codename of the item.

Request body

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

namestring
codenamestring
collectionobject
idstring
codenamestring
external_idstring
json
{
  "name": "string",
  "codename": "string",
  "collection": {
    "id": "string",
    "codename": "string",
    "external_id": "string"
  }
}

Response

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

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