---
title: Upload Import File
slug: upload-import-file
docTags: 
createdAt: 2026-08-25T19:28:59.170Z
---

{
  "id": "rSrl-RRnpBcPsctA5LWuA",
  "type": "api-oas-v2",
  "data": {
    "method": "PATCH",
    "url": "https://api.nue.io/cpq/async/imports/{jobId}/content",
    "servers": [
      {
        "url": "https://api.nue.io/cpq/async/imports/{jobId}/content",
        "description": "Nue Production API Endpoint"
      },
      {
        "url": "https://api.sandbox.nue.io/cpq/async/imports/{jobId}/content",
        "description": "Nue Sandbox API Endpoint"
      }
    ],
    "name": "Upload Import File",
    "description": "<p>Upload the file content for the import job. Before calling this API, call Create Import Job first to get an import job ID.</p>",
    "contentType": "application/json",
    "request": {
      "pathParameters": [
        {
          "kind": "required",
          "name": "jobId",
          "type": "string",
          "example": "",
          "description": "The import job ID"
        }
      ],
      "headerParameters": [
        {
          "name": "accept",
          "type": "string",
          "kind": "optional",
          "description": "Generated from available response content types",
          "enum": [
            "*/*"
          ],
          "default": "*/*"
        }
      ],
      "queryParameters": [],
      "bodyDataParameters": [
        {
          "kind": "optional",
          "name": "body",
          "type": "object",
          "description": "",
          "schema": [
            {
              "name": "data",
              "kind": "required",
              "type": "string<binary>",
              "description": "Import file. The object type referenced in the file needs to match the object name specified with the import job. ",
              "example": "",
              "format": "binary"
            }
          ],
          "isExpanded": true
        }
      ],
      "formDataParameters": [],
      "oAuthParameters": [
        {
          "id": "apiKeyAuth",
          "name": "nue-api-key",
          "kind": "optional",
          "type": "apiKey",
          "in": "header"
        }
      ],
      "cookieParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "OK",
        "jsonExample": "",
        "isExpanded": true
      },
      {
        "statusCode": "400",
        "description": "Bad Request",
        "jsonExample": "",
        "isExpanded": true
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "mGXZ1ww33BrZc7HKM3W4W",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request PATCH \\\n     --url https://api.nue.io/cpq/async/imports/{jobId}/content \\\n     --header 'accept: */*' \\\n     --header 'content-type: application/json' \\\n     --data '{\n     \"data\": \"\"\n     }'"
        },
        {
          "id": "LGELDOE-s7Ss6s3HJA4lC",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"*/*\");\nmyHeaders.append(\"content-type\", \"application/json\");\n\nvar raw = JSON.stringify({\n   \"data\": \"\"\n});\n\nvar requestOptions = {\n   method: 'PATCH',\n   headers: myHeaders,\n   body: raw,\n   redirect: 'follow'\n};\n\nfetch(\"https://api.nue.io/cpq/async/imports/{jobId}/content\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "ckRSvie-Iop-quWgWnsAE",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://api.nue.io/cpq/async/imports/{jobId}/content\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Patch.new(url)\nrequest[\"accept\"] = \"*/*\"\nrequest[\"content-type\"] = \"application/json\"\nrequest.body = JSON.dump({\n   \"data\": \"\"\n})\n\nresponse = https.request(request)\nputs response.read_body\n"
        },
        {
          "id": "6_nwZhAIUQ_AKy3g7js_M",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://api.nue.io/cpq/async/imports/{jobId}/content\"\n\npayload = json.dumps({\n   \"data\": \"\"\n})\nheaders = {\n   'accept': '*/*',\n   'content-type': 'application/json'\n}\n\nresponse = requests.request(\"PATCH\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "mGXZ1ww33BrZc7HKM3W4W"
    },
    "results": {
      "languages": [
        {
          "id": "BXvgA5_LmyqQC-ysstFyi",
          "language": "200",
          "code": "// OK\n"
        },
        {
          "id": "0cSPSLihcwIER_L7lOCK4",
          "language": "400",
          "code": "// Bad Request\n"
        }
      ],
      "selectedLanguageId": "BXvgA5_LmyqQC-ysstFyi"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}