---
title: Receives a backwards-compatible EPISERVERDATA import file and imports the contents into the CMS.
slug: commerce-connect-15/service-api/J0ci-receives-a-backwards-compatible-episerverdata-import-file-and-imports-the-contents-into-the-cms
docTags: 
createdAt: 2026-10-09T17:33:31.916Z
---

{
  "id": "8slDFAR8ERhcK8Lqv6wlI",
  "type": "api-oas-v2",
  "data": {
    "method": "POST",
    "url": "http://localhost:64424/episerverapi/commerce/import/cms/site/{siteName}/{hostname}/{culture}",
    "servers": [
      {
        "url": "http://localhost:64424/episerverapi/commerce/import/cms/site/{siteName}/{hostname}/{culture}"
      },
      {
        "url": "https://localhost:64424/episerverapi/commerce/import/cms/site/{siteName}/{hostname}/{culture}"
      }
    ],
    "name": "Receives a backwards-compatible EPISERVERDATA import file and imports the contents into the CMS.",
    "description": "Depends on receiving the OAuth security token to validate the session.",
    "contentType": "application/json",
    "request": {
      "pathParameters": [
        {
          "kind": "required",
          "name": "siteName",
          "type": "string",
          "description": "The name of the site to upload to."
        },
        {
          "kind": "required",
          "name": "hostname",
          "type": "string",
          "description": "The host name of the site to upload to."
        },
        {
          "kind": "required",
          "name": "culture",
          "type": "string",
          "description": "<p>The culture for the specified host name. If none is set, no culture will be defined for hostname.</p>"
        }
      ],
      "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": "415",
        "description": "If the media type is not supported.",
        "jsonExample": "",
        "isExpanded": true
      },
      {
        "statusCode": "500",
        "description": "If error when uploading file.",
        "jsonExample": "",
        "isExpanded": true
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "x7d0C0GPtN4zR1du4BNwt",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url http://localhost:64424/episerverapi/commerce/import/cms/site/{siteName}/{hostname}/{culture} \\\n     --header 'accept: application/json'"
        },
        {
          "id": "NG3_bzq8eIBsSX2HFKqSS",
          "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/site/{siteName}/{hostname}/{culture}\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "0VS7f8Fz-_lr0Cw4nlSpE",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"http://localhost:64424/episerverapi/commerce/import/cms/site/{siteName}/{hostname}/{culture}\")\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": "qGlae4Mzr5r4dkvHBwW7V",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"http://localhost:64424/episerverapi/commerce/import/cms/site/{siteName}/{hostname}/{culture}\"\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": "x7d0C0GPtN4zR1du4BNwt"
    },
    "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-415",
          "language": "415",
          "code": "// If the media type is not supported.\n"
        },
        {
          "id": "response-3-500",
          "language": "500",
          "code": "// If error when uploading file.\n"
        }
      ],
      "selectedLanguageId": "response-0-200"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}