---
title: "Update Prompt Dataset"
method: PATCH
path: "/api/v2/projects/{project_id}/prompt-datasets/{dataset_id}"
tags: ["Prompt Datasets"]
---

# Update Prompt Dataset

`PATCH /api/v2/projects/{project_id}/prompt-datasets/{dataset_id}`

Modify a prompt dataset's name, description, or input schema. Use to evolve datasets as prompt requirements change.

## Path parameters

- `project_id` string, required
- `dataset_id` string, required

## Request body

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

## Response `200`

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)
