> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Topic

> Update the name or description of an existing topic.

Update topic metadata via the Mailofly API.

### Path Parameters

**id** `string` *required*

The unique identifier of the topic.

### Body Parameters

**name** `string`

New topic name.

**description** `string`

New topic description.

### Response

**data** `object`

**id** `string`

The topic ID.

**name** `string`

The updated topic name.

**description** `string`

The updated description.

```bash cURL theme={null}
curl -X PATCH https://api.mailofly.com/topics/top_123 \
  -H "Authorization: Bearer mf_live_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Product Updates & Changelog"
  }'
```

```json 200 OK theme={null}
{
  "data": {
    "id": "top_123",
    "name": "Product Updates & Changelog",
    "description": "Weekly digests on new features and product improvements"
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.