---
title: "Update a dataset label"
method: PUT
path: "/api/v2/teams/{team_slug}/datasets/labels/{id}"
tags: ["Dataset Labels"]
---

# Update a dataset label

`PUT /api/v2/teams/{team_slug}/datasets/labels/{id}`

Update a dataset label for a given team.

## Path parameters

- `team_slug` string, required
- `id` string, uuid, required

## Request body

- DatasetsDatasetLabelDatasetLabelUpdateRequest — Schema for dataset label update request.
  - `color` string — Hex color code for the label
  - `dataset_ids` integer[] — Array of dataset IDs associated with the label
  - `name` string — Name of the dataset label

## Response `200`

Datasets.DatasetLabel.DatasetLabelResponse

- DatasetsDatasetLabelDatasetLabelResponse — Schema for dataset label response.
  - `label` DatasetsDatasetLabelDatasetLabel, required — Schema for dataset labels.
    - `color` string, required — Hex color code for the label
    - `dataset_ids` integer[] — Array of dataset IDs associated with the label
    - `id` string, uuid — Unique identifier for the dataset label
    - `inserted_at` string, date-time — Timestamp when the label was created
    - `name` string, required — Name of the dataset label
    - `team_id` integer, required — ID of the team associated with the label
    - `updated_at` string, date-time — Timestamp when the label was last updated

## Other responses

- `401` — Common.APIError
- `404` — Common.APIError
- `422` — Unprocessible Entity

---

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