---
title: "Update a topic"
method: PATCH
path: "/audience/topics/{topicId}"
tags: ["Audience"]
---

# Update a topic

`PATCH /audience/topics/{topicId}`

## Request

- Base URL: `https://app.lettr.com/api`
- URL: `https://app.lettr.com/api/audience/topics/{topicId}`
- Auth: HTTP bearer

Partially update a topic. The `default_subscription` field is immutable. Requires the `audience:write` scope and is blocked for sandbox API keys.

## Path parameters

- `topicId` string, uuid, required

## Request body

- UpdateAudienceTopicRequest: Update a topic. All fields are optional. The `default_subscription` field is immutable.
  - `name` string
  - `description` string, nullable
  - `visibility` 'private' | 'public': Whether the topic is visible to public subscription pages

## Response `200`

Updated

- ShowAudienceTopicResponse
  - `message` string, required
  - `data` AudienceTopicView, required
    - `id` string, uuid, required
    - `name` string, required
    - `description` string, nullable, required
    - `default_subscription` 'opt_in' | 'opt_out', required: Default subscription state for newly-created contacts. `opt_in` means the contact must subscribe themselves (not auto-attached). `opt_out` means the contact is subscribed by default and must opt out to leave (auto-attached on creation).
    - `visibility` 'private' | 'public', required: Whether the topic is visible to public subscription pages
    - `contacts_count` integer, required: Number of subscribed contacts on the topic. Contacts that are unsubscribed, bounced or unverified are not counted.
    - `created_at` string, date-time, nullable, required

## Other responses

- `401`: Unauthorized - Missing or invalid API key
- `403`: Forbidden - API key does not have the required scope
- `404`: Resource not found
- `422`: Validation error
- `500`: Internal server error
- `503`: Service unavailable - the API key could not be verified, so the request was not processed. This does not mean the key is invalid; retry after the delay given in the Retry-After header.

---

[API](https://skmtc.dev/lettr/apis/lettr-api.md) · [All operations](https://skmtc.dev/lettr/apis/lettr-api/llms.txt) · [OpenAPI document](https://skmtc.dev/lettr/apis/lettr-api/revisions/48ef0dac1ebd?raw)
