Menu
Get Media File Information By Code
Get a product media file
GET
/api/rest/v1/media-files/{code}Use it in a workflow
- Add a step and choose the Akeneo connector.
- Pick the Get Media File Information By Code action (under Product media file).
- Fill in the fields below, then reference the result from later steps as
{{getMediaFileInformationByCode.response.data}}.
Request
Path parameters
Response
Returns 200 with an object. Read it in later steps with {{getMediaFileInformationByCode.response.data.<field>}}.
{
"_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.
Was this page helpful?