Skip to main content
POST
/
api
/
datasets
Create a dataset
curl --request POST \
  --url https://app.baseplate.ai/api/datasets \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "description": "<string>",
  "columns": [
    {}
  ],
  "metadata_cols": [
    {}
  ],
  "image_cols": [
    {}
  ],
  "hybrid": true
}'

Creates a dataset

The dataset will be created in the organization of the caller.

Parameters

Authorization
string
required
Baseplate API key. Needs to be in the format β€œBearer &BASEPLATE_API_KEY”
Content-Type
string
Use application/json

Body

name
string
Name of the dataset
description
string
Description for the dataset
columns
Array
Array of strings for column names. The default text embedding column will be added if not provided.
metadata_cols
Array
Array of strings for metadata columns.
image_cols
Array
Array of strings for image columns.
hybrid
Boolean
If true, this will create a hybrid search dataset.
  • 🟒 200: OK
  • 🟠 401: Unauthorized
{
  "id": "7a966cc7-62ea-41a7-a3bc-81cba234438f",
  "created_at": "2023-03-07T18:34:51.217059+00:00",
  "name": "Example Name",
  "description": "Example Description",
  "columns": ["col1", "col2", "text"],
  "metadata_cols": ["date", "time"],
  "organization_id": "c86cb775-2d6d-4a77-b119-3bc96e5c7a2e"
}