younifyd
Menu

Get Product Main Image Relationships

Get Main Image Relationships

GET/pcm/products/{productID}/relationships/main_image

Use it in a workflow

  1. Add a step and choose the Elastic Path connector.
  2. Pick the Get Product Main Image Relationships action (under PIM).
  3. Fill in the fields below, then reference the result from later steps as {{getProductMainImageRelationships.response.data}}.

Request

Path parameters

productIDstringrequired

A unique identifier for the product.

Response

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

dataobject

A file object representing the main image, or null if no main image is set.

idstring

A unique identifier for the image file generated automatically when a file is created.

typestring

This represents the type of resource object being returned. Always `file`.

One offile

json
{
  "data": {
    "id": "string",
    "type": "file"
  }
}

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

Get Product Main Image Relationships — Elastic Path — Documentation