---
title: Create Data Export Job
slug: create-data-export-job
docTags: 
createdAt: 2026-08-25T19:28:59.170Z
---

{
  "id": "m_s2m4ffHMd19zXR76BUK",
  "type": "api-oas-v2",
  "data": {
    "method": "POST",
    "url": "https://api.nue.io/cpq/async/exports",
    "servers": [
      {
        "url": "https://api.nue.io/cpq/async/exports",
        "description": "Nue Production API Endpoint"
      },
      {
        "url": "https://api.sandbox.nue.io/cpq/async/exports",
        "description": "Nue Sandbox API Endpoint"
      }
    ],
    "name": "Create Data Export Job",
    "description": "",
    "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": "CreateExportRequest",
          "schema": [
            {
              "name": "format",
              "kind": "optional",
              "type": "string<JSON | CSV>",
              "description": "File format",
              "example": "",
              "enum": [
                "JSON",
                "CSV"
              ]
            },
            {
              "name": "objectNames",
              "kind": "optional",
              "type": "array",
              "description": "Object names",
              "example": "",
              "itemType": "string",
              "customType": "string[]",
              "itemExample": "",
              "itemDefault": ""
            },
            {
              "name": "query",
              "kind": "optional",
              "type": "string",
              "description": "",
              "example": ""
            },
            {
              "name": "childQueries",
              "kind": "optional",
              "type": "array",
              "description": "",
              "example": "",
              "itemType": "string",
              "customType": "string[]",
              "itemExample": "",
              "itemDefault": ""
            },
            {
              "name": "exportObjectConfig",
              "kind": "optional",
              "type": "map",
              "description": "",
              "example": "",
              "customType": "map<string, ExportObjectConfig>",
              "schema": []
            }
          ],
          "modelRef": "#/components/schemas/CreateExportRequest",
          "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": "0Wki5EmE0rEQRHlI2znVR",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url https://api.nue.io/cpq/async/exports \\\n     --header 'accept: */*'"
        },
        {
          "id": "E_ZQeghVjwy2ESLCEw4hu",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"*/*\");\nmyHeaders.append(\"content-type\", \"application/json\");\n\nvar requestOptions = {\n   method: 'POST',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"https://api.nue.io/cpq/async/exports\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "_Ixvfz0EUwQENG9KIgLOV",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://api.nue.io/cpq/async/exports\")\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\"\n\nresponse = https.request(request)\nputs response.read_body\n"
        },
        {
          "id": "PFwdUi7gmhfgkBgJv3TY2",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://api.nue.io/cpq/async/exports\"\n\npayload = {}\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": "0Wki5EmE0rEQRHlI2znVR"
    },
    "results": {
      "languages": [
        {
          "id": "IbT1Qjshhebnu1SI9D8DH",
          "language": "200",
          "code": "// OK\n"
        },
        {
          "id": "qUZvctqyGX_PMdzsudF3H",
          "language": "400",
          "code": "// Bad Request\n"
        }
      ],
      "selectedLanguageId": "IbT1Qjshhebnu1SI9D8DH"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}