---
title: "Create a dataset"
method: POST
path: "/v2/datasets"
tags: ["Datasets"]
---

# Create a dataset

`POST /v2/datasets`

Creates a new dataset in the specified project.

## Request body

- object
  - `display_name` string, required — The display name of the dataset
  - `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.

## Response `200`

Dataset created successfully. Returns the newly created dataset object.

- object
  - `_id` union, required — The unique identifier of the dataset
    - string
    - string, ulid — The id of the resource
  - `display_name` string, required — The display name of the dataset
  - `project_id` union, required — The unique identifier of the project it belongs to
    - string
    - string, ulid — The id of the resource
  - `workspace_id` union, required — The unique identifier of the workspace it belongs to
    - string
    - string, ulid — The id of the resource
  - `metadata` object, required
    - `total_versions` number, required
    - `datapoints_count` number, required
  - `created_by_id` union — The unique identifier of the user who created the dataset
    - string
    - string, ulid — The id of the resource
  - `updated_by_id` union — The unique identifier of the user who last updated the dataset
    - string
    - string, ulid — The id of the resource
  - `created` union — The date and time the resource was created
    - string, date-time
    - string, date-time
  - `updated` union — The date and time the resource was last updated
    - string, date-time
    - string, date-time

---

[API](https://skmtc.net/orq-ai/apis/orq-ai-api.md) · [All operations](https://skmtc.net/orq-ai/apis/orq-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/orq-ai/orq-ai-api/versions/41c02aedc7c0/schema)
