younifyd
Menu

Get products/{sku}/media/{entryId}

Get products/{sku}/media/{entryId}

GET/V1/products/{sku}/media/{entryId}

Use it in a workflow

  1. Add a step and choose the Adobe Commerce connector.
  2. Pick the Get products/{sku}/media/{entryId} action (under Products).
  3. Fill in the fields below, then reference the result from later steps as {{getProductsSkuMediaEntryid.response.data}}.

Request

Path parameters

skustringrequired
entryIdintegerrequired

Response

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

idinteger

Gallery entry ID

media_typestring

Media type

labelstring

Gallery entry alternative text

positioninteger

Gallery entry position (sort order)

disabledboolean

If gallery entry is hidden from product page

typesarray<string>

Gallery entry image types (thumbnail, image, small_image etc)

filestring

File path

contentobject

Image Content data interface

base64_encoded_datastringrequired

Media data (base64 encoded content)

typestringrequired

MIME type

namestringrequired

Image name

extension_attributesobject

ExtensionInterface class for @see \Magento\Catalog\Api\Data\ProductAttributeMediaGalleryEntryInterface

video_contentobject6 fields

Video Content data interface

json
{
  "media_type": "string",
  "label": "string",
  "position": 0,
  "disabled": false,
  "types": [
    "string"
  ],
  "id": 0,
  "file": "string",
  "content": {
    "base64_encoded_data": "string",
    "type": "string",
    "name": "string"
  },
  "extension_attributes": {
    "video_content": {
      "media_type": "string",
      "video_provider": "string",
      "video_url": "string",
      "video_title": "string",
      "video_description": "string",
      "video_metadata": "string"
    }
  }
}

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