---
search:
  tags:
    - Inboxes
    - PATCH
seo:
  description: >-
    Mark every message read or unread, or move it to inbox,… Reference for the
    PATCH /inboxes/{inbox_id}/threads/{thread_id} endpoint in the BillionSend
    API.
sidebar:
  label: Update a thread
  badge: PATCH
title: Update a thread
type: openapi-operation
---
Mark every message read or unread, or move it to inbox, archive, spam or trash (moving out of trash restores it). Labels have their own routes: POST, PUT and DELETE /inboxes/&#123;inbox_id&#125;/threads/&#123;thread_id&#125;/labels.

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

**Request body** (`application/json`)

- `read` (boolean) — Marks every message read or unread
- `folder` (string) — sent is assigned, never chosen

Request body example:

```json
{
  "read": true,
  "folder": "inbox"
}
```

**Responses**

- `200` — Thread updated
- `401` — Missing, malformed, unknown or revoked API key
- `404` — Inbox or thread not found
- `422` — Validation error
- `429` — Over the rate limit (rate\_limit\_exceeded, with Retry-After)

Response example, 200:

```json
{
  "object": "inbox_thread",
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "subject": "string",
  "folder": "inbox",
  "labels": [
    {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "name": "string",
      "color": "string"
    }
  ],
  "read": true,
  "quarantined": 0
}
```
