Skip to main content
POST
Create a dataset

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
display_name
string
required

The display name of the dataset

Required string length: 1 - 128
path
string
required

Entity storage path.

With workspace-level API keys, use the format project/folder/subfolder/.... The first element identifies the project, followed by nested folders (auto-created as needed). Example: Default/agents.

With project-level API keys, the project is predetermined by the API key, so the path is relative to that project. Example: agents. For backward compatibility, a leading project name is ignored when it matches the scoped project.

Example:

"Default"

Response

200 - application/json

Dataset created successfully. Returns the newly created dataset object.

_id
required

The unique identifier of the dataset

Pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
display_name
string
required

The display name of the dataset

Required string length: 1 - 128
project_id
required

The unique identifier of the project it belongs to

Pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
workspace_id
required

The unique identifier of the workspace it belongs to

Pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
metadata
object
required
created_by_id

The unique identifier of the user who created the dataset

Pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
updated_by_id

The unique identifier of the user who last updated the dataset

Pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
created
default:2026-06-10T10:08:14.953Z

The date and time the resource was created

updated
default:2026-06-10T10:08:14.954Z

The date and time the resource was last updated