Skip to main content
Opik Documentation

Search documentation

Type to search this documentation.

Create dataset

POST/v1/private/datasetsCreate dataset

Create dataset

Request body

application/json
objectDataset_Write
descriptionstring

maxLength 255 · minLength 0 · pattern (?s)^\s*(\S.*\S|\S)\s*$

idstring · uuid
namestringrequired

minLength 1

project_idstring · uuid

Project ID. Takes precedence over project_name when both are provided.

project_namestring

For project scope, specify either project_id or project_name. If project_name is provided and the project does not exist, it will be created. Ignored when project_id is provided. If neither is provided, the dataset is created at workspace level.

pattern (?s)^\s*(\S.*\S|\S)\s*$

tagsarray of string

uniqueItems true

Show child attributes

uniqueItems true

typestring

one of "dataset", "evaluation_suite"

visibilitystring

one of "private", "public"

Example request
{
  "description": "string",
  "id": "00000000-0000-0000-0000-000000000000",
  "name": "string",
  "project_id": "00000000-0000-0000-0000-000000000000",
  "project_name": "string",
  "tags": [
    "string"
  ],
  "type": "dataset",
  "visibility": "private"
}

Responses

201Created

Headers

Location
Documentation menu