---
title: "Update a dataset"
method: PUT
path: "/v1/projects/{project_id}/datasets/{dataset_id}"
tags: ["Evaluations"]
---

# Update a dataset

`PUT /v1/projects/{project_id}/datasets/{dataset_id}`

## Request

- Base URL: `https://api.naturali.ai`
- URL: `https://api.naturali.ai/v1/projects/{project_id}/datasets/{dataset_id}`
- Auth: one of:
  - HTTP bearer
  - OAuth 2 (authorization code, authorization URL `https://api.naturali.ai/authorize`, token URL `https://api.naturali.ai/token`, scopes: `mcp:access`)

Updates a dataset's name and/or description

## Path parameters

- `dataset_id` string, required

## Request body

- object
  - `name` string
  - `description` string, nullable

## Response `200`

Dataset updated successfully

- Dataset
  - `id` string
  - `project_id` string
  - `name` string
  - `description` string, nullable
  - `created_at` string, date-time
  - `updated_at` string, date-time

## Other responses

- `400`: Bad request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Dataset not found
- `409`: A dataset with that name already exists in the project

---

[API](https://skmtc.dev/naturali/apis/naturali-ai-api.md) · [All operations](https://skmtc.dev/naturali/apis/naturali-ai-api/llms.txt) · [OpenAPI document](https://skmtc.dev/naturali/apis/naturali-ai-api/revisions/e4905b78f422?raw)
