younifyd
Menu

Upsert Asset By External Id

Upsert an asset by external ID

PUT/v2/projects/{environment_id}/assets/external-id/{asset_external_id}

Use it in a workflow

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

Request

Path parameters

environment_idstringrequired

Environment (project) ID.

asset_external_idstringrequired

External ID of the asset.

Request body

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

file_referenceobject
folderobject
idstring
codenamestring
external_idstring
collectionobject
idstring
codenamestring
external_idstring
titlestring
descriptionsarray<object>
elementsarray<object>
json
{
  "file_reference": {},
  "folder": {
    "id": "string",
    "codename": "string",
    "external_id": "string"
  },
  "collection": {
    "id": "string",
    "codename": "string",
    "external_id": "string"
  },
  "title": "string",
  "descriptions": [
    {}
  ],
  "elements": [
    {}
  ]
}

Response

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

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