---
title: "Update a dataset"
method: PATCH
path: "/api/datasets/{id}/"
tags: ["datasets"]
---

# Update a dataset

`PATCH /api/datasets/{id}/`

Update dataset metadata such as the name, description, starred state, or tags.

## Path parameters

- `id` string, required

## Headers

- `Authorization` string, required

## Request body

- object
  - `name` string — Updated dataset name.
  - `description` string — Updated dataset description.
  - `starred` boolean — Whether the dataset is starred.
  - `tags` string[] — List of tag IDs to assign. Replaces existing tags.

## Response `200`

Updated dataset.

- DatasetsUpdateDatasetResponse200
  - `id` string
  - `name` string
  - `type` string
  - `description` string
  - `created_at` string
  - `updated_at` string
  - `organization` integer
  - `initial_log_filters` ApiDatasetsIdPatchResponsesContentApplicationJsonSchemaInitialLogFilters
    - `status_code` ApiDatasetsIdPatchResponsesContentApplicationJsonSchemaInitialLogFiltersStatusCode
      - `operator` string
      - `value` integer
  - `unique_organization_ids` string[]
  - `timestamps` string[]
  - `log_count` integer
  - `evaluator` string
  - `status` string
  - `running_status` string
  - `running_progress` integer
  - `running_at` string
  - `completed_annotation_count` integer
  - `granularity` 'logs' | 'traces' — Evaluation unit. Immutable after dataset creation.

## Other responses

- `401` — Unauthorized - Missing/invalid authentication

---

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