younifyd
Menu

Post Asset Media File

Create a new media file for an asset

POST/api/rest/v1/asset-media-files

Use it in a workflow

  1. Add a step and choose the Akeneo connector.
  2. Pick the Post Asset Media File action (under Asset media file).
  3. Fill in the fields below, then reference the result from later steps as {{postAssetMediaFile.response.data}}.

Request

Headers

Content-Typestringrequired

Equal to 'multipart/form-data' (with [boundary value](https://www.w3.org/TR/html401/interact/forms.html#h-17.13.4.2)), no other value allowed.

Request body

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

filestring (binary)required

The binary of the media file

json
{
  "file": ""
}

Response

Returns 201 with a any. Read it in later steps with {{postAssetMediaFile.response.data.<field>}}.

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

Post Asset Media File — Akeneo — Documentation