---
title: Receives a backwards-compatible EPISERVERDATA import file and imports the contents into the CMS asset global root as destination.
slug: commerce-connect-15/service-api/BnWt-receives-a-backwards-compatible-episerverdata-import-file-and-imports-the-contents-into-the-cms-asset-global-root-as-destination
docTags: 
createdAt: 2026-10-09T17:33:29.599Z
---

{
  "id": "SoNfQ9hLqIUkveeLKbIVY",
  "type": "api-oas-v2",
  "data": {
    "method": "POST",
    "url": "http://localhost:64424/episerverapi/commerce/import/cms/assetglobalroot",
    "servers": [
      {
        "url": "http://localhost:64424/episerverapi/commerce/import/cms/assetglobalroot"
      },
      {
        "url": "https://localhost:64424/episerverapi/commerce/import/cms/assetglobalroot"
      }
    ],
    "name": "Receives a backwards-compatible EPISERVERDATA import file and imports the contents into the CMS asset global root as destination.",
    "description": "Depends on receiving the OAuth security token to validate the session.",
    "contentType": "application/json",
    "request": {
      "pathParameters": [],
      "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 contents are imported into the CMS.",
        "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": "500",
        "description": "If error when uploading file.",
        "jsonExample": "",
        "isExpanded": true
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "usoHHOq_hXPJdHIFTUSIW",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url http://localhost:64424/episerverapi/commerce/import/cms/assetglobalroot \\\n     --header 'accept: application/json'"
        },
        {
          "id": "-4MmyYAAuNF_Uy0_ZQqs7",
          "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/cms/assetglobalroot\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "cWls3xhUXUd5IzUr1Xtsa",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"http://localhost:64424/episerverapi/commerce/import/cms/assetglobalroot\")\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": "0NvTHe7Mupvy2eSuD7oE5",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"http://localhost:64424/episerverapi/commerce/import/cms/assetglobalroot\"\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": "usoHHOq_hXPJdHIFTUSIW"
    },
    "results": {
      "languages": [
        {
          "id": "response-0-200",
          "language": "200",
          "code": "// The contents are imported into the CMS.\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-500",
          "language": "500",
          "code": "// If error when uploading file.\n"
        }
      ],
      "selectedLanguageId": "response-0-200"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}