---
title: "Update dataset"
method: PATCH
path: "/v1/projects/{projectSlug}/datasets/{datasetSlug}"
tags: ["Datasets"]
---

# Update dataset

`PATCH /v1/projects/{projectSlug}/datasets/{datasetSlug}`

Updates a dataset's `name` and/or `description`. Renaming regenerates the slug — clients should re-read the response or rely on the `id` for stable references.

## Path parameters

- `projectSlug` string, required — Project slug (human-readable identifier)
- `datasetSlug` string, required — Dataset slug (human-readable identifier within the project).

## Request body

- UpdateDatasetBody
  - `name` string — New human-readable name. Renaming regenerates the slug.
  - `description` string, nullable — New description. Pass `null` to clear; omit to keep the current value.

## Response `200`

Updated dataset

- Dataset
  - `id` string, required — Stable dataset identifier.
  - `organizationId` string, required — Organization that owns this dataset.
  - `projectId` string, required — Project this dataset belongs to.
  - `slug` string, required — URL-safe slug derived from `name`. Unique within the project.
  - `name` string, required — Human-readable name.
  - `description` string, nullable, required — Free-form description, or `null` when not set.
  - `version` integer, required — Current dataset version.
  - `createdAt` string, required — ISO-8601 timestamp of creation.
  - `updatedAt` string, required — ISO-8601 timestamp of the last update.

## Other responses

- `400` — Validation error
- `401` — Unauthorized
- `404` — Not found

## Changes

- **2026-05-19** `f42a1fb46380` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/latitude-dev/apis/latitude/changes/v1/projects/:projectSlug/datasets/:datasetSlug/patch.md)

---

[API](https://skmtc.dev/latitude-dev/apis/latitude.md) · [All operations](https://skmtc.dev/latitude-dev/apis/latitude/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/latitude-dev/latitude/revisions/bcfa3b9b2add/schema)
