younifyd
Menu

Post Reference Entity Media Files

Create a new media file for a reference entity or a record

POST/api/rest/v1/reference-entities-media-files

Use it in a workflow

  1. Add a step and choose the Akeneo connector.
  2. Pick the Post Reference Entity Media Files action (under Reference entity media file).
  3. Fill in the fields below, then reference the result from later steps as {{postReferenceEntityMediaFiles.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 media file to upload

json
{
  "file": ""
}

Response

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

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