import osfrom dataframer import Dataframerclient = Dataframer( api_key=os.environ.get("DATAFRAMER_API_KEY"), # This is the default and can be omitted)response = client.dataframer.seed_datasets.create_from_zip( name="name", zip_file=b"Example data",)print(response.id)
import osfrom dataframer import Dataframerclient = Dataframer( api_key=os.environ.get("DATAFRAMER_API_KEY"), # This is the default and can be omitted)response = client.dataframer.seed_datasets.create_from_zip( name="name", zip_file=b"Example data",)print(response.id)
ZIP file containing dataset files. For MULTI_FOLDER datasets, the order files appear in the ZIP determines their order within each folder — earlier files should be the ones that later files may depend on.
Type of dataset structure. SINGLE_FILE: one CSV/JSON/JSONL file with tabular data. MULTI_FILE: multiple individual text files. MULTI_FOLDER: files organized into folders where each folder represents one sample.
Number of data samples in the dataset. Only populated for SINGLE_FILE datasets (e.g. number of rows in a CSV).
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"DataFramer","colors":{"primary":"#16A34A","light":"#07C983","dark":"#15803D"},"logo":{"light":"https://mintcdn.com/aimonlabsinc/e9EU405l4UPV1d3i/logo/dataframer-horizontal-light.png?fit=max\u0026auto=format\u0026n=e9EU405l4UPV1d3i\u0026q=85\u0026s=61f341ed5f81041a8e5ed86eb6d40eb5","dark":"https://mintcdn.com/aimonlabsinc/e9EU405l4UPV1d3i/logo/dataframer-horizontal-dark.png?fit=max\u0026auto=format\u0026n=e9EU405l4UPV1d3i\u0026q=85\u0026s=0ba3a632c75ce2fb5307e7bb16f6b172"},"favicon":"https://mintcdn.com/aimonlabsinc/wLc2o3Pets8JwmPr/favicon.ico?fit=max\u0026auto=format\u0026n=wLc2o3Pets8JwmPr\u0026q=85\u0026s=4ef04c796f0c1e7b2f866ea7362c7570","api":{"examples":{"languages":["python","curl"]}},"navbar":{"links":[{"href":"https://app.dataframer.ai","label":"Dashboard"}],"primary":{"type":"button","label":"Sign Up","href":"https://app.dataframer.ai/?screen=signup"}},"footer":{"socials":{"linkedin":"https://www.linkedin.com/company/dataframerai"}},"seo":{"metatags":{"canonical":"https://www.dataframer.ai/docs","og:type":"website","og:site_name":"DataFramer","og:image":"https://www.dataframer.ai/docs/images/hero-light.png","twitter:card":"summary_large_image","twitter:image":"https://www.dataframer.ai/docs/images/hero-light.png"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Support","icon":"life-ring","href":"mailto:info@dataframer.ai"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"aimonlabsinc","hasAudioNarration":false,"actualSubdomain":"aimonlabsinc","customDomains":["www.dataframer.ai"],"gitSource":{"type":"github","owner":"aimonlabs","repo":"dataframer-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6aec898aa93f970ede8d4a8a","collectionId":"d633a226-e247-4d47-a169-56a56e205ab5","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6aec898aa93f970ede8d4a8a"},"entitlements":{},"buildId":"6aedc873eed5609e04aa0f85","clientVersion":"0.0.4076","searchFilterCounts":[{"language":"default","tag":"API Reference","count":46},{"language":"default","tag":"Data Generation","count":43},{"language":"default","tag":"Documentation","count":38},{"language":"default","tag":"Red Teaming","count":10},{"language":"default","tag":"Generation Tutorials","count":8},{"language":"default","tag":"Data Generation Runs","count":7},{"language":"default","tag":"Anonymization","count":6},{"language":"default","tag":"Seed Datasets","count":6},{"language":"default","tag":"User Signals","count":6},{"language":"default","tag":"Judges","count":5}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"/docs","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":".arch-hotspot{position:absolute;display:block;border-radius:8px}.arch-hotspot:hover{outline:2px solid #16A34A;outline-offset:-1px}"}],"page":{"pagePath":"api-reference/datasets/create-from-zip","slug":"/api-reference/datasets/create-from-zip","pageMetadata":{"title":"Create seed dataset from ZIP","description":"Create a seed dataset by uploading a ZIP file","openapi":"POST /api/dataframer/seed-datasets/create-from-zip/","href":"/api-reference/datasets/create-from-zip"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Create a seed dataset by uploading a ZIP file\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={li:`li`,p:`p`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{Heading,Table}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`The system automatically detects the dataset type based on ZIP structure:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`SINGLE_FILE`}),`: ZIP contains exactly one file containing all the samples`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`MULTI_FILE`}),`: ZIP contains multiple files at root level, where each file is a separate sample`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`MULTI_FOLDER`}),`: ZIP contains multiple folders, where each folder is a separate sample and only contains files with no nested folders`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`file-constraints-by-dataset-type`,children:`File constraints by dataset type`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Allowed formats`}),_jsx(_components.th,{children:`Size limit`}),_jsx(_components.th,{children:`Count limit`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`SINGLE_FILE`}),_jsx(_components.td,{children:`CSV, JSON, JSONL`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`50MB`}),_jsx(_components.td,{children:`1 file, min 2 rows`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`MULTI_FILE`}),_jsx(_components.td,{children:`TXT, MD, JSON, CSV, JSONL, PDF`}),_jsx(_components.td,{children:`1MB/file, 50MB total`}),_jsx(_components.td,{children:`2-1000 files`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`MULTI_FOLDER`}),_jsx(_components.td,{children:`TXT, MD, JSON, CSV, JSONL, PDF`}),_jsx(_components.td,{children:`1MB/file, 50MB total`}),_jsx(_components.td,{children:`2-1000 files, 20/folder, min 2 folders`})]})]})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Create seed dataset from ZIP","description":"Create a seed dataset by uploading a ZIP file","openapi":"POST /api/dataframer/seed-datasets/create-from-zip/","href":"/api-reference/datasets/create-from-zip"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"File constraints by dataset type","slug":"file-constraints-by-dataset-type","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"api_dataframer_datasets_create_from_zip","x-stainless":{"multipart-extract-paths":[["zip_file"]]},"summary":"Create seed dataset from ZIP","description":"Create a seed dataset by uploading a ZIP file","requestBody":"66880553-5eff-4575-8e0f-fb4046f46c89","responses":{"201":"1a91e796-3635-4637-bf7a-748e2e73736a","400":"c89ae340-168b-4134-965e-8ee0e3a66127","401":"51cee587-141d-48db-a903-e0144d71c37e","501":"86785e38-db15-4501-bf63-4bc96bf790d0"},"x-hidden":true,"x-codeSamples":[{"lang":"Python","source":"import os\nfrom dataframer import Dataframer\n\nclient = Dataframer(\n api_key=os.environ.get(\"DATAFRAMER_API_KEY\"), # This is the default and can be omitted\n)\nresponse = client.dataframer.seed_datasets.create_from_zip(\n name=\"name\",\n zip_file=b\"Example data\",\n)\nprint(response.id)"},{"lang":"cURL","source":"curl https://df-api.dataframer.ai/api/dataframer/seed-datasets/create-from-zip/ \\\n -H 'Content-Type: multipart/form-data' \\\n -H \"Authorization: Bearer $DATAFRAMER_API_KEY\" \\\n -F name=name \\\n -F 'zip_file=@/path/to/zip_file'"}],"method":"post","type":"path","servers":["d442aac5-adc7-41a2-a65f-d0ee5e4ffb25"],"security":["59537c51-5eb6-46ed-8b5f-cfbf50ba1f92"],"path":"/api/dataframer/seed-datasets/create-from-zip/","baseUrlOptions":["https://df-api.dataframer.ai"],"title":"Create seed dataset from ZIP","codeSamples":[{"lang":"Python","source":"import os\nfrom dataframer import Dataframer\n\nclient = Dataframer(\n api_key=os.environ.get(\"DATAFRAMER_API_KEY\"), # This is the default and can be omitted\n)\nresponse = client.dataframer.seed_datasets.create_from_zip(\n name=\"name\",\n zip_file=b\"Example data\",\n)\nprint(response.id)"},{"lang":"cURL","source":"curl https://df-api.dataframer.ai/api/dataframer/seed-datasets/create-from-zip/ \\\n -H 'Content-Type: multipart/form-data' \\\n -H \"Authorization: Bearer $DATAFRAMER_API_KEY\" \\\n -F name=name \\\n -F 'zip_file=@/path/to/zip_file'"}],"requestExampleLanguages":["python","bash"],"requiredOnlyExamples":false,"requestExampleType":"codeSamples","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","required":["name","zip_file"],"properties":{"name":{"type":"string","description":"Dataset name (unique within company)","isRequired":true,"uniqueKey":"name","typeLabel":"string"},"zip_file":{"type":"string","format":"binary","description":"ZIP file containing dataset files. For MULTI_FOLDER datasets, the order files appear in the ZIP determines their order within each folder — earlier files should be the ones that later files may depend on.","isRequired":true,"uniqueKey":"zip_file","typeLabel":"file"},"description":{"type":"string","description":"Optional dataset description","uniqueKey":"description","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"encoding":{"zip_file":{"contentType":"application/zip"}},"examples":{"Example":{"title":"Example","value":{"name":"\u003cstring>","zip_file":"\u003cstring>","description":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"1a91e796-3635-4637-bf7a-748e2e73736a":{"description":"Seed dataset created successfully","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Unique identifier for the dataset","uniqueKey":"id","typeLabel":"string\u003cuuid>"},"name":{"type":"string","description":"Dataset name","uniqueKey":"name","typeLabel":"string"},"description":{"oneOf":[{"type":"string","description":"Optional description of the dataset contents or purpose","uniqueKey":"description.oneOf.0","typeLabel":"string"},{"type":"null","description":"Optional description of the dataset contents or purpose","uniqueKey":"description.oneOf.1","typeLabel":"null"}],"uniqueKey":"description","typeLabel":"string | null"},"dataset_type":{"type":"string","enum":["SINGLE_FILE","MULTI_FILE","MULTI_FOLDER"],"description":"Type of dataset structure. SINGLE_FILE: one CSV/JSON/JSONL file with tabular data. MULTI_FILE: multiple individual text files. MULTI_FOLDER: files organized into folders where each folder represents one sample.","uniqueKey":"dataset_type","typeLabel":"enum\u003cstring>"},"created_at":{"type":"string","format":"date-time","description":"Timestamp when the dataset was created","uniqueKey":"created_at","typeLabel":"string\u003cdate-time>"},"created_by_email":{"type":"string","description":"Email address of the user who created the dataset","uniqueKey":"created_by_email","typeLabel":"string"},"files":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Unique identifier for the file","uniqueKey":"files.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"file_type":{"type":"string","enum":["application/json","application/jsonl","text/csv","text/markdown","text/plain","application/pdf","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],"description":"MIME type of the file. text/csv: comma-separated values. application/json: single JSON object or array. application/jsonl: newline-delimited JSON records. text/markdown: Markdown text. text/plain: plain text. application/pdf: PDF document. application/vnd.openxmlformats-officedocument.spreadsheetml.sheet: XLSX spreadsheet.","uniqueKey":"files.items.[INDEX].file_type","typeLabel":"enum\u003cstring>"},"size_bytes":{"oneOf":[{"type":"integer","description":"File size in bytes","uniqueKey":"files.items.[INDEX].size_bytes.oneOf.0","typeLabel":"integer"},{"type":"null","description":"File size in bytes","uniqueKey":"files.items.[INDEX].size_bytes.oneOf.1","typeLabel":"null"}],"uniqueKey":"files.items.[INDEX].size_bytes","typeLabel":"integer | null"},"sha256":{"oneOf":[{"type":"string","description":"SHA-256 hash of the file contents for integrity verification","uniqueKey":"files.items.[INDEX].sha256.oneOf.0","typeLabel":"string"},{"type":"null","description":"SHA-256 hash of the file contents for integrity verification","uniqueKey":"files.items.[INDEX].sha256.oneOf.1","typeLabel":"null"}],"uniqueKey":"files.items.[INDEX].sha256","typeLabel":"string | null"},"path":{"type":"string","description":"Full path of the file. For files in folders, includes folder name (e.g., 'folder_name/file.txt'). For files at root level, just the filename.","uniqueKey":"files.items.[INDEX].path","typeLabel":"string"}},"uniqueKey":"files.items.[INDEX]","typeLabel":"object"},"description":"List of all files in the dataset","uniqueKey":"files","typeLabel":"object[]"},"folder_count":{"type":"integer","description":"Total number of folders in the dataset","uniqueKey":"folder_count","typeLabel":"integer"},"file_count":{"type":"integer","description":"Total number of files in the dataset","uniqueKey":"file_count","typeLabel":"integer"},"sample_count":{"oneOf":[{"type":"integer","description":"Number of data samples in the dataset. Only populated for SINGLE_FILE datasets (e.g. number of rows in a CSV).","uniqueKey":"sample_count.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Number of data samples in the dataset. Only populated for SINGLE_FILE datasets (e.g. number of rows in a CSV).","uniqueKey":"sample_count.oneOf.1","typeLabel":"null"}],"uniqueKey":"sample_count","typeLabel":"integer | null"}},"uniqueKey":"","typeLabel":"object"},"examples":{"dataset_from_zip":{"title":"dataset_from_zip","value":{"id":"550e8400-e29b-41d4-a716-446655440000","name":"Support Ticket Conversations","description":"Customer support chat logs organized by ticket","dataset_type":"MULTI_FOLDER","file_count":10,"folder_count":2,"created_at":"2025-01-15T10:30:00Z","created_by_email":"sarah.chen@acme.com"}}},"exampleType":"examples"}},"exampleType":"examples"},"c89ae340-168b-4134-965e-8ee0e3a66127":{"description":"Bad Request - Invalid ZIP structure or file validation errors","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"51cee587-141d-48db-a903-e0144d71c37e":{"description":"Unauthorized","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"86785e38-db15-4501-bf63-4bc96bf790d0":{"description":"Customer-hosted deployments only, for a direct API call or a Python SDK without data-plane support: the files are stored in your own cloud, so this endpoint does not accept them. A current Python SDK uploads them to your data plane, as the DataFramer app does. Code `not_supported_hybrid`; not retried","content":{"application/json":{"schema":{"type":"object","description":"Returned when an operation is not available through the API for a customer-hosted deployment. The refusal is permanent, so the SDK does not retry it","properties":{"error":{"type":"string","description":"What was refused, and where to do it instead","uniqueKey":"error","typeLabel":"string"},"code":{"type":"string","enum":["not_supported_hybrid","spec_content_in_data_plane"],"description":"Stable code to branch on","uniqueKey":"code","typeLabel":"enum\u003cstring>"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","code":"not_supported_hybrid"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"59537c51-5eb6-46ed-8b5f-cfbf50ba1f92":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"API Key","description":"API Key authentication. Format: \"Bearer YOUR_API_KEY\"","scopes":[],"schemeName":"BearerAuth"}}},"servers":{"d442aac5-adc7-41a2-a65f-d0ee5e4ffb25":{"url":"https://df-api.dataframer.ai","description":"Production server"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"API Key","description":"API Key authentication. Format: \"Bearer YOUR_API_KEY\"","scopes":[],"schemeName":"BearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"API Key authentication. Format: \"Bearer YOUR_API_KEY\"","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"BearerAuth","name":"Authorization"}],"title":"BearerAuth"}]},"originalFileLocation":"openapi.with-code-samples.yml"},"subdomain":"aimonlabsinc","siteName":"DataFramer","title":"Create seed dataset from ZIP - DataFramer","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-02-03T00:52:59.791Z","originalFileLocation":"api-reference/datasets/create-from-zip.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Create a seed dataset by uploading a ZIP file\">\u003cmeta data-mint-head name=\"application-name\" content=\"DataFramer\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/aimonlabsinc/n9Jb8UsXAOGamRv1/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/aimonlabsinc/n9Jb8UsXAOGamRv1/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/aimonlabsinc/n9Jb8UsXAOGamRv1/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/aimonlabsinc/n9Jb8UsXAOGamRv1/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/aimonlabsinc/n9Jb8UsXAOGamRv1/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/aimonlabsinc/n9Jb8UsXAOGamRv1/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/aimonlabsinc/n9Jb8UsXAOGamRv1/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/aimonlabsinc/n9Jb8UsXAOGamRv1/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/aimonlabsinc/n9Jb8UsXAOGamRv1/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create seed dataset from ZIP - DataFramer\">\u003cmeta data-mint-head property=\"og:description\" content=\"Create a seed dataset by uploading a ZIP file\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"DataFramer\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://www.dataframer.ai/docs/api-reference/datasets/create-from-zip\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://www.dataframer.ai/docs/images/hero-light.png\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create seed dataset from ZIP - DataFramer\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Create a seed dataset by uploading a ZIP file\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://www.dataframer.ai/docs/images/hero-light.png\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/aimonlabsinc/n9Jb8UsXAOGamRv1/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"DataFramer\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#16A34A\">\u003clink data-mint-head rel=\"canonical\" href=\"https://www.dataframer.ai/docs/api-reference/datasets/create-from-zip\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/api-reference/datasets/create-from-zip.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://www.dataframer.ai/#organization\",\"name\":\"DataFramer\",\"url\":\"https://www.dataframer.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/aimonlabsinc/e9EU405l4UPV1d3i/logo/dataframer-horizontal-light.png?fit=max\u0026auto=format\u0026n=e9EU405l4UPV1d3i\u0026q=85\u0026s=61f341ed5f81041a8e5ed86eb6d40eb5\"}},{\"@type\":\"WebSite\",\"@id\":\"https://www.dataframer.ai/docs#website\",\"name\":\"DataFramer\",\"url\":\"https://www.dataframer.ai/docs\",\"publisher\":{\"@id\":\"https://www.dataframer.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://www.dataframer.ai/docs/api-reference/datasets/create-from-zip#webpage\",\"url\":\"https://www.dataframer.ai/docs/api-reference/datasets/create-from-zip\",\"name\":\"Create seed dataset from ZIP\",\"description\":\"Create a seed dataset by uploading a ZIP file\",\"dateModified\":\"2026-02-03T00:52:59.791Z\",\"isPartOf\":{\"@id\":\"https://www.dataframer.ai/docs#website\"},\"breadcrumb\":{\"@id\":\"https://www.dataframer.ai/docs/api-reference/datasets/create-from-zip#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://www.dataframer.ai/docs/api-reference/datasets/create-from-zip#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Data Generation\",\"item\":\"https://www.dataframer.ai/docs/api-reference/datasets/create\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Seed Datasets\",\"item\":\"https://www.dataframer.ai/docs/api-reference/datasets/create\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Create seed dataset from ZIP\",\"item\":\"https://www.dataframer.ai/docs/api-reference/datasets/create-from-zip\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://www.dataframer.ai/docs/api-reference/datasets/create-from-zip#apireference\",\"headline\":\"Create seed dataset from ZIP\",\"name\":\"Create seed dataset from ZIP\",\"description\":\"Create a seed dataset by uploading a ZIP file\",\"url\":\"https://www.dataframer.ai/docs/api-reference/datasets/create-from-zip\",\"mainEntityOfPage\":{\"@id\":\"https://www.dataframer.ai/docs/api-reference/datasets/create-from-zip#webpage\"},\"image\":\"https://www.dataframer.ai/docs/images/hero-light.png\",\"dateModified\":\"2026-02-03T00:52:59.791Z\",\"publisher\":{\"@id\":\"https://www.dataframer.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://www.dataframer.ai/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"DataFramer\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"DataFramer","nav":{"global":{"anchors":[{"anchor":"Support","icon":"life-ring","href":"mailto:info@dataframer.ai"}]},"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":""}]},{"tab":"API Reference","groups":[{"group":"Failures","tag":"Experimental","pages":[{"title":"List failures","openapi":"GET /api/dataframer/failures/","href":"/api-reference/failures/list"},{"title":"Get failure","openapi":"GET /api/dataframer/failures/{failure_id}/","href":"/api-reference/failures/retrieve"}]},{"group":"Context","tag":"Experimental","pages":[{"title":"Get context","openapi":"GET /api/dataframer/context/","href":"/api-reference/failures/context"}]},{"group":"Judges","tag":"Experimental","pages":[{"title":"List judges","openapi":"GET /api/dataframer/judges/","href":"/api-reference/judges/list"},{"title":"Get judge","openapi":"GET /api/dataframer/judges/{judge_id}/","href":"/api-reference/judges/get"},{"title":"Evaluate content with a judge","openapi":"POST /api/dataframer/judges/{judge_id}/evaluations/","href":"/api-reference/judges/evaluate"},{"title":"List judge evaluations","openapi":"GET /api/dataframer/judges/{judge_id}/evaluations/","href":"/api-reference/judges/list-evaluations"},{"title":"Get judge evaluation","openapi":"GET /api/dataframer/judges/{judge_id}/evaluations/{evaluation_id}/","href":"/api-reference/judges/get-evaluation"}]},{"group":"Data Generation","pages":[{"group":"Seed Datasets","expanded":false,"pages":[{"title":"Create seed dataset","description":"Create a new seed dataset with uploaded files","openapi":"POST /api/dataframer/seed-datasets/create/","href":"/api-reference/datasets/create"},{"title":"Create seed dataset from ZIP","openapi":"POST /api/dataframer/seed-datasets/create-from-zip/","href":"/api-reference/datasets/create-from-zip"},{"title":"List seed datasets","description":"Get all seed datasets for the user's company","openapi":"GET /api/dataframer/seed-datasets/","href":"/api-reference/datasets/list"},{"title":"Get seed dataset","openapi":"GET /api/dataframer/seed-datasets/{dataset_id}/","href":"/api-reference/datasets/get"},{"title":"Download seed file","openapi":"GET /api/dataframer/seed-datasets/{dataset_id}/files/{file_id}/","href":"/api-reference/files/download"},{"title":"Delete seed dataset","openapi":"DELETE /api/dataframer/seed-datasets/{dataset_id}/","href":"/api-reference/datasets/delete"}]},{"group":"Specs (data blueprints)","expanded":false,"pages":[{"title":"Create spec","openapi":"POST /api/dataframer/specs/","href":"/api-reference/specs/create"},{"title":"List specs","openapi":"GET /api/dataframer/specs/","href":"/api-reference/specs/list"},{"title":"Get spec","openapi":"GET /api/dataframer/specs/{spec_id}/","href":"/api-reference/specs/get"},{"title":"Update spec","openapi":"PUT /api/dataframer/specs/{spec_id}/","href":"/api-reference/specs/update"},{"title":"Delete spec","openapi":"DELETE /api/dataframer/specs/{spec_id}/","href":"/api-reference/specs/delete"}]},{"group":"Data Generation Runs","expanded":false,"pages":[{"title":"Start a new generation run","openapi":"POST /api/dataframer/runs/","href":"/api-reference/runs/generate"},{"title":"List runs","openapi":"GET /api/dataframer/runs/","href":"/api-reference/runs/list"},{"title":"Get run","openapi":"GET /api/dataframer/runs/{run_id}/","href":"/api-reference/runs/get"},{"title":"Download all generated files","openapi":"GET /api/dataframer/runs/{run_id}/files/download/","href":"/api-reference/runs/download-all"},{"title":"Download generated file","openapi":"GET /api/dataframer/runs/{run_id}/files/{file_id}/download/","href":"/api-reference/runs/download-file"},{"title":"Cancel run","openapi":"POST /api/dataframer/runs/{run_id}/cancel/","href":"/api-reference/runs/cancel"},{"title":"Delete run","openapi":"DELETE /api/dataframer/runs/{run_id}/","href":"/api-reference/runs/delete"}]},{"group":"Evaluations","tag":"Experimental","expanded":false,"pages":[{"title":"Create evaluation","openapi":"POST /api/dataframer/evaluations/","href":"/api-reference/evaluations/create"},{"title":"List evaluations for a run","openapi":"GET /api/dataframer/runs/{run_id}/evaluations/","href":"/api-reference/evaluations/list"},{"title":"Get evaluation","openapi":"GET /api/dataframer/evaluations/{evaluation_id}/","href":"/api-reference/evaluations/get"}]},{"group":"Red Teaming","tag":"Experimental","expanded":false,"pages":[{"title":"Create red team spec","openapi":"POST /api/dataframer/red-team-specs/","href":"/api-reference/red-teaming/create-spec"},{"title":"List red team specs","openapi":"GET /api/dataframer/red-team-specs/","href":"/api-reference/red-teaming/list-specs"},{"title":"Get red team spec","openapi":"GET /api/dataframer/red-team-specs/{spec_id}/","href":"/api-reference/red-teaming/get-spec"},{"title":"Update red team spec","openapi":"PATCH /api/dataframer/red-team-specs/{spec_id}/","href":"/api-reference/red-teaming/update-spec"},{"title":"Delete red team spec","openapi":"DELETE /api/dataframer/red-team-specs/{spec_id}/","href":"/api-reference/red-teaming/delete-spec"},{"title":"Create red team run","openapi":"POST /api/dataframer/red-team-runs/","href":"/api-reference/red-teaming/create-run"},{"title":"Get red team run status","openapi":"GET /api/dataframer/red-team-runs/{run_id}/status/","href":"/api-reference/red-teaming/run-status"},{"title":"List red team runs","openapi":"GET /api/dataframer/red-team-runs/","href":"/api-reference/red-teaming/list-runs"},{"title":"Get red team run","openapi":"GET /api/dataframer/red-team-runs/{run_id}/","href":"/api-reference/red-teaming/get-run"},{"title":"Delete red team run","openapi":"DELETE /api/dataframer/red-team-runs/{run_id}/","href":"/api-reference/red-teaming/delete-run"}]}]},{"group":"Anonymization","tag":"Experimental","pages":[{"title":"Create an Anonymization Run","openapi":"POST /api/dataframer/anonymization-runs/","href":"/api-reference/anonymization-runs/create"},{"title":"List Anonymization Runs","openapi":"GET /api/dataframer/anonymization-runs/","href":"/api-reference/anonymization-runs/list"},{"title":"Get Anonymization Run","openapi":"GET /api/dataframer/anonymization-runs/{run_id}/","href":"/api-reference/anonymization-runs/get"},{"title":"Download All Anonymized Files","openapi":"GET /api/dataframer/anonymization-runs/{run_id}/download/","href":"/api-reference/anonymization-runs/download-all"},{"title":"Download Anonymized File","openapi":"GET /api/dataframer/anonymization-runs/{run_id}/files/{file_id}/download/","href":"/api-reference/anonymization-runs/download-file"},{"title":"Delete Anonymization Run","openapi":"DELETE /api/dataframer/anonymization-runs/{run_id}/","href":"/api-reference/anonymization-runs/delete"}]},{"group":"API Keys","pages":[{"title":"Rotate API key","openapi":"POST /api/users/api-key/rotate","href":"/api-reference/api-keys/rotate"}]},{"group":"API Reference","pages":[]}]}]},"basePath":"","title":"Create seed dataset from ZIP - DataFramer","buildId":"dpl_ATnXPMW25DMPUr9VBw6kL6MfBt6T","deploymentId":"dpl_ATnXPMW25DMPUr9VBw6kL6MfBt6T","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CNqlzjVB.js","utils-BqFiXZ79.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-CnR4QBe6.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-BY2ZM1OO.js","snippetPresets-x-8ACO8V.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-Ch-SJE05.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-CqqG_0NE.js","shallow-BXrZ2b0C.js","getApiPlaygroundDisplay-n7J_wkjq.js","CodeSnippet-CQsp4vyQ.js","CodeSnippets-BfuHqvZx.js","Page-CTxrMSpo.js","getPastedJson-BjrGIK1i.js","icon-7iLZnVOC.js","MethodPill-TBS1m84e.js","DuplicateIcon-BNMrV4Vs.js","createIcon-C5kCqeU2.js","DynamicMarkdown-Bq09mRwR.js","SectionHeading-G4Bflf5Q.js","axios-vUo_bRtp.js","Markdown-BTUds0aX.js","clsx-6wHzaN2_.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-BPypQKlo.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-o6bee4ro.js"]}