Provide the list of links for a specific product

GET /V1/products/{sku}/links/{type}

Provide the list of links for a specific product

Path parameters

  • sku string Required
  • type string Required

Responses

  • 200

    200 Success.

    Hide response attributes Show response attributes object
    • sku string Required

      SKU

    • linked_product_sku string Required

      Linked product sku

    • linked_product_type string Required

      Linked product type (simple, virtual, etc)

    • position integer Required

      Linked item position

    • extension_attributes object

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

      Hide extension_attributes attribute Show extension_attributes attribute object
      • qty number
  • 400

    400 Bad Request

    Hide response attributes Show response attributes object
    • message string Required

      Error message

    • errors array[object]

      Error details

      Error details

      Hide errors attributes Show errors attributes object
      • message string

        Error message

      • parameters array[object]

        Error parameters item

        Error parameters item

        Hide parameters attributes Show parameters attributes object
        • resources string

          ACL resource

        • fieldName string

          Missing or invalid field name

        • fieldValue string

          Incorrect field value

    • code integer

      Error code

    • parameters array[object]

      Error parameters item

      Error parameters item

      Hide parameters attributes Show parameters attributes object
      • resources string

        ACL resource

      • fieldName string

        Missing or invalid field name

      • fieldValue string

        Incorrect field value

    • trace string

      Stack trace

  • default

    Unexpected error

    Hide response attributes Show response attributes object
    • message string Required

      Error message

    • errors array[object]

      Error details

      Error details

      Hide errors attributes Show errors attributes object
      • message string

        Error message

      • parameters array[object]

        Error parameters item

        Error parameters item

        Hide parameters attributes Show parameters attributes object
        • resources string

          ACL resource

        • fieldName string

          Missing or invalid field name

        • fieldValue string

          Incorrect field value

    • code integer

      Error code

    • parameters array[object]

      Error parameters item

      Error parameters item

      Hide parameters attributes Show parameters attributes object
      • resources string

        ACL resource

      • fieldName string

        Missing or invalid field name

      • fieldValue string

        Incorrect field value

    • trace string

      Stack trace

GET /V1/products/{sku}/links/{type}
curl \
 --request GET 'https://magento2.winkelstraat.mac/rest/all/V1/products/{sku}/links/{type}'
Response examples (200)
[
  {
    "sku": "string",
    "link_type": "string",
    "linked_product_sku": "string",
    "linked_product_type": "string",
    "position": 42,
    "extension_attributes": {
      "qty": 42.0
    }
  }
]
Response examples (400)
{
  "message": "string",
  "errors": [
    {
      "message": "string",
      "parameters": [
        {
          "resources": "string",
          "fieldName": "string",
          "fieldValue": "string"
        }
      ]
    }
  ],
  "code": 42,
  "parameters": [
    {
      "resources": "string",
      "fieldName": "string",
      "fieldValue": "string"
    }
  ],
  "trace": "string"
}
Response examples (default)
{
  "message": "string",
  "errors": [
    {
      "message": "string",
      "parameters": [
        {
          "resources": "string",
          "fieldName": "string",
          "fieldValue": "string"
        }
      ]
    }
  ],
  "code": 42,
  "parameters": [
    {
      "resources": "string",
      "fieldName": "string",
      "fieldValue": "string"
    }
  ],
  "trace": "string"
}