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

# Add Tag to Contact

To add a tag to an existing contact, use the [Update Contact](/automate-chats/api-reference/contacts/update-contact) (`PUT /api/contacts/{id}`) endpoint.

Provide the complete updated array of `tagsId` in the request body. Ensure you include both existing tags and the new tag you wish to add, as this operation replaces the entire array.

**Example Payload:**

```json theme={null}
{
  "tagsId": [
    "your_tag_id_1", // Existing tag
    "your_tag_id_2"  // New tag to add
  ]
}
```
