# Tag a Device

After creating queries and investigating devices and adherence to policies, you can perform actions, such as Tag, on a single selected device or in bulk of selected devices.

You can use the tags in future queries, for example:

<figure><img src="https://274266591-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MasS_HfnZcnOFegk1MO%2Fuploads%2F8VF96qHkHYgSCnuvVouR%2Fimage.png?alt=media&#x26;token=c43c8e29-33be-4dd8-891e-ccc02ebd805e" alt=""><figcaption></figcaption></figure>

### How to Tag a Device﻿ <a href="#how-to-tag-a-device" id="how-to-tag-a-device"></a>

To tag a device:

1. Open the Devices page and run a saved query or run your own query.
2. Select one or multiple device record checkboxes. Once at least one device is selected, Actions is displayed above the query results table.
3. Click Actions and then click Tag. The Tag Devices dialog opens.

<figure><img src="https://274266591-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MasS_HfnZcnOFegk1MO%2Fuploads%2FGoa4t2dAIvHry8PbRnCh%2Fimage.png?alt=media&#x26;token=8c750493-13ff-4753-abaf-207c7d490701" alt=""><figcaption></figcaption></figure>

5. Apply new or existing tags to the selected devices. The list of selected tags is applied to all selected devices. Therefore, tagging may result in the removal of existing tags from one or from several of the selected devices. Refer to Working with Tags to learn more about using tags.
6. Click Save.

### Asset Profile - Tags Tab﻿

You can use the Tags tab in the Asset Profile page to add and to edit tags associated with a device. This tab displays the list of tags associated with the device.

<figure><img src="https://274266591-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MasS_HfnZcnOFegk1MO%2Fuploads%2F5p1wuitbIPA7pjUSSiU1%2Fimage.png?alt=media&#x26;token=d8829468-66a6-4f1f-8d0f-3208ad442839" alt=""><figcaption></figcaption></figure>

To edit the device tags, click Manage Tags. Select the tags to be associated with the device and clear tags you wish to unassociate from the device.

To learn more about the Asset Profile, see the Asset Profile page.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.octoxlabs.com/using-octoxlabs/tag-a-device.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
