---
title: "Tag a dataset"
method: POST
path: "/data/tag"
tags: ["data"]
---

# Tag a dataset

`POST /data/tag`

Tags a dataset.

## Response `200`

The id of the tagged dataset

- object
  - `data_tag` InlineResponse2002DataTag
    - `id` string — ID of the tagged dataset

## Other responses

- `412` — Precondition failed. An error code and message are returned. 470 - In order to add a tag, please upload the entity id (either data_id, flow_id, run_id) and tag (the name of the tag). 471 - Entity not found. The provided entity_id {data_id, flow_id, run_id} does not correspond to an existing entity. 472 - Entity already tagged by this tag. The entity {dataset, flow, run} already had this tag. 473 - Something went wrong inserting the tag. Please contact OpenML Team. 474 - Internal error tagging the entity. Please contact OpenML Team.

---

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