---
title: Receives a linking file for catalog items and media assets and generates the included associations.
The file to be used is based of the upload identifier of a file previously updated using /episerverapi/commerce/import/upload/chunk 
and /episerverapi/co
slug: commerce-connect-15/service-api/VEpV-receives-a-linking-file-for-catalog-items-and-media-assets-and-generates-the-included-associations-the-file-to-be-used-is-based-of-the-upload-identifier-of-a-file-previously-updated-using-episervera
docTags: 
createdAt: 2026-10-09T17:33:29.599Z
---

{
  "id": "fJdml_Xnhp25Ub67B_p8L",
  "type": "api-oas-v2",
  "data": {
    "method": "POST",
    "url": "http://localhost:64424/episerverapi/commerce/import/links/{uploadId}",
    "servers": [
      {
        "url": "http://localhost:64424/episerverapi/commerce/import/links/{uploadId}"
      },
      {
        "url": "https://localhost:64424/episerverapi/commerce/import/links/{uploadId}"
      }
    ],
    "name": "Receives a linking file for catalog items and media assets and generates the included associations.\r\nThe file to be used is based of the upload identifier of a file previously updated using /episerverapi/commerce/import/upload/chunk \r\nand /episerverapi/commerce/import/upload/commit.",
    "description": "Depends on receiving the OAuth security token to validate the session.",
    "contentType": "application/json",
    "request": {
      "pathParameters": [
        {
          "kind": "required",
          "name": "uploadId",
          "type": "string<uuid>",
          "description": "The upload identifier from the chunked upload commit.",
          "format": "uuid"
        }
      ],
      "headerParameters": [
        {
          "name": "accept",
          "type": "string",
          "kind": "optional",
          "description": "Generated from available response content types",
          "enum": [
            "application/json"
          ],
          "default": "application/json"
        }
      ],
      "queryParameters": [],
      "bodyDataParameters": [],
      "formDataParameters": [],
      "oAuthParameters": [],
      "cookieParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "The catalog asset links are saved.",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "string<uuid>",
            "example": "00000000-0000-0000-0000-000000000000",
            "description": "",
            "format": "uuid",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "401",
        "description": "If user does not have enough permission for this request.",
        "jsonExample": "",
        "isExpanded": true
      },
      {
        "statusCode": "404",
        "description": "If file does not exist.",
        "jsonExample": "",
        "isExpanded": true
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "BKwaJV7IbNFgoMHjaJMcr",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url http://localhost:64424/episerverapi/commerce/import/links/{uploadId} \\\n     --header 'accept: application/json'"
        },
        {
          "id": "y7JYHmptwVG6aeRY-Uol5",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\n\nvar requestOptions = {\n   method: 'POST',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"http://localhost:64424/episerverapi/commerce/import/links/{uploadId}\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "NcrdDdRtLIANHQnMgsyvB",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"http://localhost:64424/episerverapi/commerce/import/links/{uploadId}\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nrequest = Net::HTTP::Post.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\n\nresponse = http.request(request)\nputs response.read_body\n"
        },
        {
          "id": "JaCzB4OCzarNQlvFmkRDP",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"http://localhost:64424/episerverapi/commerce/import/links/{uploadId}\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "BKwaJV7IbNFgoMHjaJMcr"
    },
    "results": {
      "languages": [
        {
          "id": "response-0-200",
          "language": "200",
          "code": "// The catalog asset links are saved.\n\"00000000-0000-0000-0000-000000000000\""
        },
        {
          "id": "response-1-401",
          "language": "401",
          "code": "// If user does not have enough permission for this request.\n"
        },
        {
          "id": "response-2-404",
          "language": "404",
          "code": "// If file does not exist.\n"
        }
      ],
      "selectedLanguageId": "response-0-200"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}