Skip to main content
POST
/
v1
/
datasets
Create Dataset
curl --request POST \
  --url https://api.getmaxim.ai/v1/datasets \
  --header 'Content-Type: application/json' \
  --header 'x-maxim-api-key: <api-key>' \
  --data '
{
  "workspaceId": "<string>",
  "name": "<string>",
  "folderId": "<string>",
  "createDefaultColumns": true,
  "columns": [
    {
      "name": "<string>",
      "columnType": "CONVERSATION_HISTORY",
      "meta": {
        "columnDataType": "file",
        "delimiter": "<string>"
      }
    }
  ]
}
'
{}

Authorizations

x-maxim-api-key
string
header
required

API key for authentication

Body

application/json
workspaceId
string
required

Unique identifier for the workspace

name
string
required

Name of the dataset

folderId
string | null

Unique identifier for the folder

createDefaultColumns
boolean

Create default columns for the dataset. Columns Input and Expected Output will get created by default

columns
object[]

Columns for the dataset

Response

Dataset created successfully

The response is of type object.