Create a new dataset and upload files in a single atomic operation. Files are validated first, and dataset is only created if validation passes. Empty datasets cannot be created with this endpoint.
Dataset Types:
SINGLE_FILE: Upload one file
MULTI_FILE: Upload multiple individual files
MULTI_FOLDER: Upload files in folders
Request Format:
Benefits:
API Key authentication. Format: "Bearer YOUR_API_KEY"
Dataset name (unique within company)
Dataset type: SINGLE_FILE, MULTI_FILE, or MULTI_FOLDER
SINGLE_FILE, MULTI_FILE, MULTI_FOLDER Optional dataset description
Optional configuration JSON as string
Single file for SINGLE_FILE dataset type
Multiple files for MULTI_FILE or MULTI_FOLDER dataset types. Each file will be sent as a separate form field named 'files'. For MULTI_FOLDER: minimum 2 files required (at least 1 file per folder, across at least 2 folders).
1Folder names for MULTI_FOLDER (parallel array with files). Each folder name is sent as a separate 'folder_names' form field. Minimum 2 unique folder names required.
2Optional CSV headers as JSON array for SINGLE_FILE CSV files
Dataset created successfully with files
1SINGLE_FILE, MULTI_FILE, MULTI_FOLDER 111