younifyd
Menu

Get Media File Information By Code

Get a product media file

GET/api/rest/v1/media-files/{code}

Use it in a workflow

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

Request

Path parameters

codestringrequired

This path parameter is used to specify the unique identifier of the entity you want to retrieve or manipulate. It is essential for identifying the specific entity in the API requests. Ensure that the code is correctly formatted and corresponds to an existing entity in the system.

Response

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

_linksobject
downloadobject1 fields
codestring

Media file code

original_filenamestring

Original filename of the media file

mime_typestring

Mime type of the media file

sizeinteger

Size of the media file

extensionstring

Extension of the media file

json
{
  "_links": {
    "download": {
      "href": "https://demo.akeneo.com/api/rest/v1/media-files/7/5/8/e/758e39d48ea7b42a55091434fd3d8b6cf3189b7f_10806799_1356.jpg/download"
    }
  },
  "code": "7/5/8/e/758e39d48ea7b42a55091434fd3d8b6cf3189b7f_10806799_1356.jpg",
  "original_filename": "10806799-1356.jpg",
  "mime_type": "image/jpeg",
  "size": 16070,
  "extension": "jpg"
}

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

Get Media File Information By Code — Akeneo — Documentation