---
title: "Update Thread"
method: PATCH
path: "/v0/inboxes/{inbox_id}/threads/{thread_id}"
tags: ["InboxesThreads"]
---

# Update Thread

`PATCH /v0/inboxes/{inbox_id}/threads/{thread_id}`

Updates thread labels. Cannot add or remove system labels (sent, received, bounced, etc.). Rejects requests with a `422` for threads with 100 or more messages.

## Path parameters

- `inbox_id` string, required — The ID of the inbox.
- `thread_id` string, required — ID of thread.

## Request body

- UpdateThreadRequest
  - `add_labels` string[], nullable — Labels to add to thread. Cannot be system labels.
  - `remove_labels` string[], nullable — Labels to remove from thread. Cannot be system labels. Takes priority over `add_labels` (in the event of duplicate labels passed in).

## Response `200`

- UpdateThreadResponse
  - `thread_id` string, required — ID of thread.
  - `labels` string[], required — Labels of thread.

## Other responses

- `400`
- `404`
- `422`

---

[API](https://skmtc.net/agentmail-to/apis/api-2.md) · [All operations](https://skmtc.net/agentmail-to/apis/api-2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/agentmail-to/api-2/versions/869b7f1c360c/schema)
