---
title: "Update a dataset"
method: PATCH
path: "/v2/datasets/{dataset_id}"
tags: ["Datasets"]
---

# Update a dataset

`PATCH /v2/datasets/{dataset_id}`

Update an existing dataset by its ID.

**Payload Requirements**
- `name` is required.
- `name` must be unique within the space (409 Conflict if duplicate).
- `name` cannot be empty or whitespace-only.

**Valid example**
```json
{
  "name": "Updated Dataset Name"
}
```

**Invalid example** (empty body — no fields provided)
```json
{}
```

  <Note>This endpoint is in beta, read more [here](https://arize.com/docs/ax/rest-reference#api-version-stages).</Note>

## Path parameters

- `dataset_id` string, required — A universally unique identifier (base64-encoded opaque string).

## Request body

- UpdateDatasetRequest — Dataset update parameters.
  - `name` string, required — New name for the dataset. Must be unique within the space.

## Response `200`

A dataset object

- Dataset — A dataset is a structured collection of examples used to test and evaluate LLM applications. Datasets allow you to test models consistently across any real-world scenarios and edge cases, quickly identify regressions, and track measurable improvements.
  - `id` string, required — Unique identifier for the dataset
  - `name` string, required — Name of the dataset
  - `space_id` string, required — Unique identifier for the space this dataset belongs to
  - `created_at` string, date-time, required — Timestamp for when the dataset was created
  - `updated_at` string, date-time, required — Timestamp for the last update of the dataset
  - `versions` DatasetVersion[] — List of versions associated with this dataset
    - `id` string, required — Unique identifier for the dataset version
    - `name` string, required — Name of the dataset version
    - `dataset_id` string, required — Unique identifier for the dataset this version belongs to
    - `created_at` string, date-time, required — Timestamp for when the dataset version was created
    - `updated_at` string, date-time, required — Timestamp for the last update of the dataset version

## Other responses

- `400` — Invalid request
- `401` — Authentication is required
- `403` — Insufficient permissions to access this resource
- `404` — Not found
- `409` — Resource conflict
- `422` — Unprocessable entity
- `429` — Rate limit exceeded

---

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