Skip to main content

Step 1: Install Required Libraries

Step 2: Set Up API Configuration

Step 3: Create a Dataset

First, create a dataset where you’ll add your items:

Step 4: Prepare Your Bulk Data

Create a JSON file containing an array of items you want to add to your dataset. Each item should include the dataset ID, inputs, and outputs:

Step 5: Submit the Bulk Create Request

Submit your bulk create request with the data file:

Step 6: Monitor Bulk Create Status

You can check the status of your bulk create task in the admin panel. The task will process your items in the background and add them to your dataset. The bulk create feature supports two modes:
  • insert: Creates new items only
  • upsert: Creates new items or updates existing ones if they match
  • replace: Deletes existing items and creates new ones
This feature is particularly useful when you need to:
  • Import large datasets from external sources
  • Update multiple dataset items simultaneously
  • Populate datasets with training data
Remember to structure your bulk data according to your dataset’s schema, ensuring that all required fields are included for each item.