---
title: Create Import Job
slug: create-import-job
docTags: 
createdAt: 2026-08-25T19:28:59.170Z
---

{
  "id": "2r6eqE3pn4jA4dVHCziWn",
  "type": "api-oas-v2",
  "data": {
    "method": "POST",
    "url": "https://api.nue.io/cpq/async/imports",
    "servers": [
      {
        "url": "https://api.nue.io/cpq/async/imports",
        "description": "Nue Production API Endpoint"
      },
      {
        "url": "https://api.sandbox.nue.io/cpq/async/imports",
        "description": "Nue Sandbox API Endpoint"
      }
    ],
    "name": "Create Import Job",
    "description": "Create an import job to import a single type of object type. ",
    "contentType": "application/json",
    "request": {
      "pathParameters": [],
      "headerParameters": [
        {
          "name": "accept",
          "type": "string",
          "kind": "optional",
          "description": "Generated from available response content types",
          "enum": [
            "*/*"
          ],
          "default": "*/*"
        }
      ],
      "queryParameters": [],
      "bodyDataParameters": [
        {
          "kind": "required",
          "name": "body",
          "type": "object",
          "example": "",
          "description": "Specify the file format and object name. ",
          "customType": "CreateImportRequest",
          "schema": [
            {
              "name": "format",
              "kind": "optional",
              "type": "string<JSON | CSV>",
              "description": "File format",
              "example": "",
              "enum": [
                "JSON",
                "CSV"
              ]
            },
            {
              "name": "objectName",
              "kind": "required",
              "type": "string<UOM | PriceBook | PriceTag | ProductGroup | Product | Bundle | BundleSuite | Subscription>",
              "description": "Object name",
              "example": "",
              "enum": [
                "UOM",
                "PriceBook",
                "PriceTag",
                "ProductGroup",
                "Product",
                "Bundle",
                "BundleSuite",
                "Subscription"
              ]
            }
          ],
          "modelRef": "#/components/schemas/CreateImportRequest",
          "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": "eDqNchO_DlrjIdi8SbtzJ",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url https://api.nue.io/cpq/async/imports \\\n     --header 'accept: */*' \\\n     --header 'content-type: application/json' \\\n     --data '{\n     \"objectName\": \"\"\n     }'"
        },
        {
          "id": "YLJ_iPnEosHOPO-Cc8kVQ",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"*/*\");\nmyHeaders.append(\"content-type\", \"application/json\");\n\nvar raw = JSON.stringify({\n   \"objectName\": \"\"\n});\n\nvar requestOptions = {\n   method: 'POST',\n   headers: myHeaders,\n   body: raw,\n   redirect: 'follow'\n};\n\nfetch(\"https://api.nue.io/cpq/async/imports\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "IIMF-gOg96xaBjCcX_r9_",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://api.nue.io/cpq/async/imports\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"accept\"] = \"*/*\"\nrequest[\"content-type\"] = \"application/json\"\nrequest.body = JSON.dump({\n   \"objectName\": \"\"\n})\n\nresponse = https.request(request)\nputs response.read_body\n"
        },
        {
          "id": "7CenvURwjtKK3ahoIQNtr",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://api.nue.io/cpq/async/imports\"\n\npayload = json.dumps({\n   \"objectName\": \"\"\n})\nheaders = {\n   'accept': '*/*',\n   'content-type': 'application/json'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "eDqNchO_DlrjIdi8SbtzJ"
    },
    "results": {
      "languages": [
        {
          "id": "U9ino0lt0bQx9rpOwADTb",
          "language": "200",
          "code": "// OK\n"
        },
        {
          "id": "-ppr8km6tMrTp7QDhLNTq",
          "language": "400",
          "code": "// Bad Request\n"
        }
      ],
      "selectedLanguageId": "U9ino0lt0bQx9rpOwADTb"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}