younifyd
Menu

Create Product File Relationships

Create a product file relationship

POST/pcm/products/{productID}/relationships/files

Use it in a workflow

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

Request

Path parameters

productIDstringrequired

A unique identifier for the product.

Request body

Enter the body as JSON in the step's Body field.

dataarray<object>
idstring

A unique identifier for a file generated when a file is created.

typestring

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

One offile

metaobject1 fields
json
{
  "data": [
    {
      "id": "string",
      "type": "file",
      "meta": {
        "tags": [
          "string"
        ]
      }
    }
  ]
}

Response

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

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

Create Product File Relationships — Elastic Path — Documentation