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

# Labeling content

> Apply and manage labels in Omni to find content across folders, curate the Home page, and mark content as Verified.

While [folders](https://docs.omni.co/content/organize/folders.md) are helpful for maintaining structure and access, a document can only be in one folder at a time. For example, a dashboard is relevant to multiple teams, each of which has its own folder. Where should the document be located?

With labels, you could place the dashboard in a shared folder and add relevant labels, ensuring the right people can find the content. Labels allow you to organize your content in a way that doesn't require duplication or sacrifice findability.

## Use cases

Using labels, you can:

* Organize content by subject area, such as **Marketing** or **Support**
* Indicate the current working state of a document, such as **In progress**
* Use [label settings](#special-options) to:
  * Curate **Home** page content for your organization
  * Mark important content as **Verified**

## Creating labels

> [tab] Omni UI
>
> 1. Labels are created in the **Settings > Labels** page. Navigate there by:
>
>    * Clicking **Settings > Labels**
>    * Opening a document, clicking the  icon next to the document name, and clicking the  icon in the popover
> 2. On the **Labels** page, click **Add label**.
> 3. Fill in the following:
>    * **Name** - Enter a name for the label
>    * **Description** - Enter a brief description of what the label is for, how to use it, etc.
>    * **Color** - Select a hex color for the label, which is used as the label's background throughout Omni. Text on colored labels automatically adjusts for optimal contrast and readability.
> 4. When finished, click **Save**.

> [tab] API
>
> Use the [Create label](https://docs.omni.co/api/labels/create-label.md) endpoint to create a label using the API:
>
> ```http theme={null}
> curl --request POST \
> --url https://{your-omni-org}.omniapp.co/api/v1/labels \
> --header 'Authorization: Bearer {token}' \
> --header 'Content-Type: application/json' \
> --data '
> {
> "name": "Dev",
> "color": "#0366d6",
> "description": "Documents based on dev schemas"
> }
> '
> ```

## Applying labels

> [tab] Omni UI
>
> > [!NOTE]
> >
> > You must be in the published version of a document to apply labels.
>
> To apply an existing label to a document or a folder, click the **Labels** icon to the right of the document/folder name and select the label you want:
>
> ![Labels icon next to a document name, with the Labels popover open and the Sales label selected](https://mintcdn.com/omni-e7402367/bHwX8h0LUonDSsXp/content/images/document-label-icon.png?fit=max\&auto=format\&n=bHwX8h0LUonDSsXp\&q=85\&s=01b4c7cc44bbc20ff790bc8739e79c0e)
>
> Applying **Homepage** and **Verified** labels requires **Organization Admin** permissions.

> [tab] API
>
> > [!NOTE]
> >
> > Labels must exist before you can apply them. To create a label, use the [Create label](https://docs.omni.co/api/labels/create-label.md) endpoint.
>
> Use the [Apply label to document](https://docs.omni.co/api/document-labels/apply-label-to-document.md) endpoint to add a label to a document:
>
> ```http theme={null}
> curl --request PUT \
> --url https://{your-omni-org}.omniapp.co/api/v1/documents/{documentId}/labels/{labelName} \
> --header 'Authorization: Bearer {token}'
> ```
>
> To add and remove several labels in one request, use the [Bulk update document labels](https://docs.omni.co/api/document-labels/bulk-update-document-labels.md) endpoint. All changes succeed or fail together:
>
> ```http theme={null}
> curl --request PATCH \
> --url https://{your-omni-org}.omniapp.co/api/v1/documents/{documentId}/labels \
> --header 'Authorization: Bearer {token}' \
> --header 'Content-Type: application/json' \
> --data '{
>   "add": ["Marketing", "In progress"],
>   "remove": ["Support"]
> }'
> ```
>
> Use the [Bulk update folder labels](https://docs.omni.co/api/folder-labels/bulk-update-folder-labels.md) endpoint to add and remove labels on a folder:
>
> ```http theme={null}
> curl --request PATCH \
> --url https://{your-omni-org}.omniapp.co/api/v1/folders/{folderId}/labels \
> --header 'Authorization: Bearer {token}' \
> --header 'Content-Type: application/json' \
> --data '{
>   "add": ["Marketing"]
> }'
> ```

## Updating labels

> [tab] Omni UI
>
> 1. Navigate to the **Settings > Labels** page.
> 2. Click the  icon next to the label, then select **Edit**.
> 3. Update the label's name, description, or hex color as needed.
> 4. **Optional**: If you're an **Organization Admin**, you can select the **Homepage** or **Verified** options to apply special behavior to the label. See the [Homepage and Verified section](#special-options) for more information.
> 5. Click **Save** when finished.

> [tab] API
>
> Use the [Update label](https://docs.omni.co/api/labels/update-label.md) endpoint to edit a label. Include only the fields you want to change.
>
> ```http theme={null}
> curl --request PUT \
> --url https://{your-omni-org}.omniapp.co/api/v1/labels/{labelName} \
> --header 'Authorization: Bearer {token}' \
> --header 'Content-Type: application/json' \
> --data '{
>   "name": "Company Metrics",
>   "homepage": true,
>   "verified": true
> }'
> ```

### Homepage and Verified options

> [!NOTE]
>
> **Organization Admin** permissions are required to apply these options to labels.

Existing labels can be configured with special options that provide additional functionality:

* **Homepage** - Enabling this option allows you to select content to display on your users' **Home** page, in the **For you** section.

  This can be useful for:

  * Providing helpful starting points for new users in your organization
  * Ensuring content relevant to all users is accessible

  When this option is enabled, labels have a Home Page badge next to them.
* **Verified** - Enabling this option allows you to mark important content, such as dashboards that are monitored for correctness. This can be helpful for conveying to your users which content is actively maintained or has been vetted.

  When this option is enabled, labels have a Verified badge next to them.

## Viewing label information

> [tab] Omni UI
>
> When you hover over a label, a tooltip displays additional information about the label:
>
> ![Black Ready for Review label with a metadata tooltip showing its description (Documents ready to be reviewed by leads) and the user who last applied it, and when](https://mintcdn.com/omni-e7402367/3zYk4GP7c3TcdswV/content/images/label-hover-metadata.png?fit=max\&auto=format\&n=3zYk4GP7c3TcdswV\&q=85\&s=3edf5a661f99122ca3de824334d95c36)
>
> Label tooltips show the label's description (if there is one), who applied the label, and when it was applied
>
> This metadata helps you understand the context and history of labels applied to content. You can view this information wherever labels appear in Omni, including:
>
> * Document and folder detail pages
>
> * Content listings (**Home** page, **My Documents**, folders)
>
> * Search results
>
> > [!NOTE]
> >
> > In embedded Omni instances, the tooltip shows the label description and timestamp, but not the name of the user who applied the label.

> [tab] API
>
> Use the [Get label](https://docs.omni.co/api/labels/get-label.md) endpoint to retrieve a label's description, color, options, and the number of documents and folders that use it.
>
> ```http theme={null}
> curl --request GET \
> --url https://{your-omni-org}.omniapp.co/api/v1/labels/{labelName} \
> --header 'Authorization: Bearer {token}'
> ```
>
> Note that this endpoint's response doesn't include the user who last applied the label or when it was applied.
>
> To retrieve every label in your organization, use the [List labels](https://docs.omni.co/api/labels/list-labels.md) endpoint.

## Deleting labels

> [!NOTE]
>
> Labels can't be deleted if they're currently in use. Remove the label from any documents and folders, then delete the label.

> [tab] Omni UI
>
> 1. Navigate to the **Settings > Labels** page.
> 2. Click the  icon next to the label.
> 3. Select **Delete**.

> [tab] API
>
> Use the [Delete label](https://docs.omni.co/api/labels/delete-label.md) endpoint to delete a label.
>
> ```http theme={null}
> curl --request DELETE \
> --url https://{your-omni-org}.omniapp.co/api/v1/labels/{labelName} \
> --header 'Authorization: Bearer {token}'
> ```
