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

# Update Tag

## `PUT`a tag

`PUT` `/user-api/v1/tags/:id`

### Headers

| **Header**          | **Value**           |
| ------------------- | ------------------- |
| `Content-Type`      | `application/json`  |
| `x-rolodex-api-key` | `f1e2d3c4b5a697...` |

### Path Parameters

<ParamField path="id" type="string">
  Tag ID
</ParamField>

### Query Parameters

<ParamField path="include" type="string">
  Related data to include: `contacts`, `companies`, `tasks`
</ParamField>

### Endpoint Example

`PUT` `/user-api/v1/tags/tag_99999?include=contacts`

<Note>
  Relationship fields (`contacts`, `companies`, `tasks`) are replaced entirely with the provided values. To add to existing relationships, include all current values plus new ones.
</Note>

### Request

```json theme={null}
{
  "name": "Premium Client",
  "contacts": ["contact_123"]
}
```

### Response

```json theme={null}
{
  "data": {
    "id": "tag_99999",
    "name": "Premium Client",
    "created_at": "2025-01-15T10:30:00Z",
    "updated_at": "2025-01-15T12:45:00Z"
  }
}
```
