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

# Rename topic

> Rename a single topic.

Updates the display name of an existing topic. For renaming many topics at once, use [Batch update topics](/api-reference/topics-prompts/batch-update-topics).

### Path parameters

<ParamField path="topicId" type="string" required>
  Topic UUID.
</ParamField>

### Request body

<ParamField body="name" type="string" required>
  New topic name (non-empty after trim).
</ParamField>

### Request

```bash theme={null}
curl -s -X PATCH \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"Pricing & packaging"}' \
  "https://app.rocketblue.ai/api/v1/topics/TOPIC_ID"
```

### Response

<ResponseField name="updatedCount" type="integer">
  Number of topics updated (always `1` on success).
</ResponseField>

<ResponseField name="updatedTopics" type="object[]">
  Updated topic objects with `id`, `name`, and `brandId`.
</ResponseField>

<ResponseField name="brandId" type="string">
  Brand the topic belongs to.
</ResponseField>

```json theme={null}
{
  "updatedCount": 1,
  "updatedTopics": [
    {
      "id": "topic-uuid-1",
      "name": "Pricing & packaging",
      "brandId": "brand-uuid-123"
    }
  ],
  "brandIds": ["brand-uuid-123"],
  "brandId": "brand-uuid-123"
}
```
