> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getcollate.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Tags

> Create, retrieve, update, and delete tags within classification hierarchies to categorize and classify data assets for governance and discovery using the Collate REST API.

# Tags

A **Tag** is a label within a classification that can be applied to data assets for categorization and governance. Tags can be hierarchically nested within a classification.

> [!NOTE]
>
> Entity schema follows the [OpenMetadata Standard](https://openmetadatastandards.org/governance/tag/).

## Entity Hierarchy

Tags belong to a Classification and can be nested:

```txt Tag theme={null}
Classification
├── Tag (top-level)
│   ├── Tag (child)
│   └── Tag (child)
└── Tag (top-level)
```

## Fully Qualified Name

The FQN format for a tag is:

```
classification.tagName
```

For nested tags:

```
classification.parent.child
```

For example: `Certification.Bronze` or `PII.Sensitive.SSN`

***

## API Endpoints

| Method | Endpoint | Description |
| - | - | - |
| `PUT` | `/v1/tags` | [Create or update a tag](https://docs.getcollate.io/api-reference/governance/tags/create.md) |
| `POST` | `/v1/tags` | [Create a tag (POST variant)](https://docs.getcollate.io/api-reference/governance/tags/create.md) |
| `GET` | `/v1/tags` | [List tags](https://docs.getcollate.io/api-reference/governance/tags/list.md) |
| `GET` | `/v1/tags/{id}` | [Get by ID](https://docs.getcollate.io/api-reference/governance/tags/retrieve.md) |
| `GET` | `/v1/tags/name/{fqn}` | [Get by FQN](https://docs.getcollate.io/api-reference/governance/tags/retrieve.md) |
| `PATCH` | `/v1/tags/{id}` | [Update by ID](https://docs.getcollate.io/api-reference/governance/tags/update.md) |
| `PATCH` | `/v1/tags/name/{fqn}` | [Update by name](https://docs.getcollate.io/api-reference/governance/tags/update.md) |
| `DELETE` | `/v1/tags/{id}` | [Delete by ID](https://docs.getcollate.io/api-reference/governance/tags/delete.md) |
| `DELETE` | `/v1/tags/name/{fqn}` | [Delete by name](https://docs.getcollate.io/api-reference/governance/tags/delete.md) |
| `PUT` | `/v1/tags/restore` | [Restore soft-deleted tag](https://docs.getcollate.io/api-reference/governance/tags/delete.md) |
| `GET` | `/v1/tags/{id}/versions` | [List versions](https://docs.getcollate.io/api-reference/governance/tags/versions.md) |
| `GET` | `/v1/tags/{id}/versions/{version}` | [Get specific version](https://docs.getcollate.io/api-reference/governance/tags/versions.md) |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.