---
title: "Update thread labels"
method: PATCH
path: "/email/inboxes/{inbox_id}/threads/{id}"
tags: ["Email"]
---

# Update thread labels

`PATCH /email/inboxes/{inbox_id}/threads/{id}`

## Request

- Base URL: `https://api.crevio.co/v1`
- URL: `https://api.crevio.co/v1/email/inboxes/{inbox_id}/threads/{id}`
- Auth: API key in header `Authorization`

Adds/removes labels on a thread.

## Path parameters

- `inbox_id` string, required
- `id` string, required

## Request body

- object
  - `add_labels` string[]
  - `remove_labels` string[]

## Response `200`

Updated

- EmailThread
  - `object` string, required
  - `id` string, required
  - `inbox_id` string, required
  - `subject` string, nullable, required
  - `preview` string, nullable, required
  - `labels` string[], required
  - `participants` string[], required
  - `message_count` integer, required
  - `messages` unknown[], required
    - unknown
  - `last_message_at` string, date-time, nullable, required
  - `created_at` string, date-time, required

## Other responses

- `401`: Authentication required
- `403`: Forbidden
- `404`: Resource not found
- `422`: Validation error
- `429`: Rate limit exceeded — 600 requests per minute per credential. Retry after the number of seconds in `Retry-After`.

---

[API](https://skmtc.dev/crevio/apis/crevio-api-v1.md) · [All operations](https://skmtc.dev/crevio/apis/crevio-api-v1/llms.txt) · [OpenAPI document](https://skmtc.dev/crevio/apis/crevio-api-v1/revisions/2219f18ad651?raw)
