---
title: "Create Prompt-Level Dataset"
method: POST
path: "/api/v2/projects/{project_id}/prompt-datasets"
tags: ["Prompt Datasets"]
---

# Create Prompt-Level Dataset

`POST /api/v2/projects/{project_id}/prompt-datasets`

Create a new dataset for prompt-level testing. Use to organize test cases for evaluating individual prompts.

## Path parameters

- `project_id` string, required

## Request body

- object
  - `name` string, required
  - `description` string, nullable
  - `input_names` string[], nullable
  - `media_input_names` string[], nullable
  - `support_history` boolean
  - `tags` string[], nullable

## Response `201`

PromptDatasetResponse(dataset: shared.sqlalchemy.models.Dataset, tags: Optional[list['TagResponse']] = None)

- object
  - `id` string, uuid, required
  - `name` string, required
  - `input_names` string[], required
  - `media_input_names` string[], required
  - `support_history` boolean, required
  - `description` string, nullable
  - `tags` TagResponse[]
    - `id` string, required
    - `name` string, required
    - `color` string, required
    - `association_count` integer

---

[API](https://skmtc.net/freeplay/apis/freeplay-api.md) · [All operations](https://skmtc.net/freeplay/apis/freeplay-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/freeplay/freeplay-api/revisions/69c553220183/schema)
