---
search:
  tags:
    - Topics
    - PATCH
seo:
  description: >-
    Update a topic. Reference for the PATCH /topics/{id} endpoint in the
    BillionSend API.
sidebar:
  label: Update a topic
  badge: PATCH
title: Update a topic
type: openapi-operation
---
`PATCH /topics/{id}`

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

- `name` (string)
- `description` (string)
- `visibility` (string)
- `domain_id` (string<uuid> | null) — BillionSend extension: id of one of your domains. The topic then appears only on that domain's unsubscribe page, and a send with this topic\_id must come from that domain (422 otherwise). null or omitted: a topic of the whole team, shown for every domain. On update, null makes the topic a team-wide one again.

Request body example:

```json
{
  "name": "string",
  "description": "string",
  "visibility": "private",
  "domain_id": "b2f7354f-b74d-4332-ab10-1a5e3c56466c"
}
```

**Responses**

- `200` — Topic updated
- `401` — Missing, malformed, unknown or revoked API key
- `403` — A key held to one domain bound this to another domain, or unbound it
- `404` — Not found
- `422` — Validation error, or a domain\_id that is not one of your domains
- `429` — Over the rate limit (rate\_limit\_exceeded, with Retry-After)

Response example, 200:

```json
{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
```
