Skip to main content
POST
/
v2
/
datasets
Create a dataset
curl --request POST \
  --url https://api.orq.ai/v2/datasets \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "display_name": "<string>",
  "path": "Default"
}
'
{
  "_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "display_name": "<string>",
  "project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "workspace_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "metadata": {
    "total_versions": 123,
    "datapoints_count": 123
  },
  "created_by_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "updated_by_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "created": "2025-12-08T10:34:25.077Z",
  "updated": "2025-12-08T10:34:25.079Z"
}

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

path
string
required

Entity storage path in the format: project/folder/subfolder/...

The first element identifies the project, followed by nested folders (auto-created as needed).

With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.

Example:

"Default"

Response

200 - application/json

Dataset created successfully. Returns the newly created dataset object.

_id
required

The unique identifier of the dataset

display_name
string
required

The display name of the dataset

project_id
required

The unique identifier of the project it belongs to

workspace_id
required

The unique identifier of the workspace it belongs to

metadata
object
required
created_by_id

The unique identifier of the user who created the dataset

updated_by_id

The unique identifier of the user who last updated the dataset

created
default:2025-12-08T10:34:25.077Z

The date and time the resource was created

updated
default:2025-12-08T10:34:25.079Z

The date and time the resource was last updated