---
search:
  tags:
    - Inboxes
    - PUT
seo:
  description: >-
    Replaces the thread's labels with exactly these (up to… Reference for the
    PUT /inboxes/{inbox_id}/threads/{thread_id}/labels endpoint in the
    BillionSend API.
sidebar:
  label: Set a thread's labels
  badge: PUT
title: Set a thread's labels
type: openapi-operation
---
Replaces the thread's labels with exactly these (up to 100; [] takes them all off). The labels stay in the inbox. If any label is unknown, nothing changes (404). Answers every label on the thread afterwards.

`PUT /inboxes/{inbox_id}/threads/{thread_id}/labels`

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

- `labels` (string<uuid>[], required) — Up to 100 label IDs of the inbox: exactly the labels the thread ends up with

Request body example:

```json
{
  "labels": [
    "497f6eca-6276-4993-bfeb-53cbbbba6f08"
  ]
}
```

**Responses**

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

Response example, 200:

```json
{
  "object": "list",
  "data": [
    {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "name": "string",
      "color": "string"
    }
  ]
}
```
