# PATCH /email/threads/:thread_id

**Resource:** [Email](./email.md)  
**MCP tool:** `update_email_thread`  
**Scopes:** `email:write`  
**Write operation:** yes

Update an email thread. Mutate read/status, or link the thread to an opportunity / contact / customer so it appears on the deal activity feed and in list_email_threads?opportunity_id=. Useful when send_email was called without an opportunity_id and you need to attach the thread after the fact.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `thread_id` | path | string | yes |  |
| `is_read` | body | boolean | no |  |
| `status` | body | string | no | active \| archived \| spam |
| `link_opportunity_id` | body | string | no | Link this thread to an opportunity UUID. Idempotent — safe to call repeatedly. |
| `link_contact_id` | body | string | no | Link this thread to a contact UUID. Idempotent. |
| `link_customer_id` | body | string | no | Link this thread to a customer UUID. Idempotent. |

## Request example

```bash
curl -X PATCH   "https://api.trustpager.com/functions/v1/api/v1/email/threads/:thread_id"   -H "Authorization: Bearer YOUR_API_KEY"   -H "Content-Type: application/json"   -d '{"is_read":"...","status":"...","link_opportunity_id":"..."}'
```

---
Base URL: `https://api.trustpager.com/functions/v1/api/v1` — Auth: `Authorization: Bearer YOUR_API_KEY`