younifyd
Menu

Create products/{sku}/links

Create products/{sku}/links

POST/V1/products/{sku}/links

Use it in a workflow

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

Request

Path parameters

skustringrequired

Request body

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

itemsarray<object>required
skustringrequired

SKU

link_typestringrequired

Link type

linked_product_skustringrequired

Linked product sku

linked_product_typestringrequired

Linked product type (simple, virtual, etc)

positionintegerrequired

Linked item position

extension_attributesobject1 fields

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

json
{
  "items": [
    {
      "sku": "string",
      "link_type": "string",
      "linked_product_sku": "string",
      "linked_product_type": "string",
      "position": 0,
      "extension_attributes": {
        "qty": 0
      }
    }
  ]
}

Response

Returns 200 with a boolean. Read it in later steps with {{createProductsSkuLinks.response.data.<field>}}.

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

Create products/{sku}/links — Adobe Commerce — Documentation