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

# The Tag Resource

In addition to support for structured metadata via the Metadata resource, the One Codex platform supports attaching arbitrary labels or tags to samples. These tags are displayed in the Samples view of the One Codex web application.

<img src="https://mintcdn.com/onecodex/DiToQ9fYtYBO3lRU/images/api/tag_example.png?fit=max&auto=format&n=DiToQ9fYtYBO3lRU&q=85&s=5e59f062416175fcd7e96eea2c3531ad" alt="" width="774" height="534" data-path="images/api/tag_example.png" />

Users can create and apply arbitrary tags to their samples, and then use those to query for or filter to a subset of samples. The One Codex platform also automatically applies tags that reflect underlying annotations we are able to generate from your microbial NGS data. Tags on a sample may be updated by PATCHing an updated listed of tags to update a sample record (see [Updating Samples](/api-reference/sample-resource-patch)).

For example, if you upload a FASTQ file from an *E. coli* isolate, you should see the system automatically tag is as *E. coli*, tag it as an "isolate", and then automatically run and tag the sample with its [MLST type](https://en.wikipedia.org/wiki/Multilocus_sequence_typing).

<img src="https://mintcdn.com/onecodex/DiToQ9fYtYBO3lRU/images/api/tag_example_isolate.png?fit=max&auto=format&n=DiToQ9fYtYBO3lRU&q=85&s=6509daf9d0afece2dfc86892211d73ab" alt="" width="752" height="524" data-path="images/api/tag_example_isolate.png" />

By convention, tags created automatically by our system have lighter colors and dark text. User-created tags have bolder colors with white text.
