---
title: "Rename a topic"
method: PATCH
path: "/v1/topics/{topicKey}"
tags: ["Topics"]
---

# Rename a topic

`PATCH /v1/topics/{topicKey}`

## Request

- Base URL: `https://example.com/api`
- URL: `https://example.com/api/v1/topics/{topicKey}`
- Auth: API key in header `Authorization`

Rename a topic by providing a new name

## Path parameters

- `topicKey` string, required

## Request body

- RenameTopicRequestDto
  - `name` string, required: User defined custom name and provided by the user to rename the topic.

## Response `200`

- object
  - `data` RenameTopicResponseDto
    - `_id` string
    - `_organizationId` string, required
    - `_environmentId` string, required
    - `key` string, required
    - `name` string, required
    - `subscribers` string[], required

---

[API](https://skmtc.dev/cequens/apis/omni-link-api.md) - [All operations](https://skmtc.dev/cequens/apis/omni-link-api/llms.txt) - [OpenAPI document](https://skmtc.dev/cequens/apis/omni-link-api/revisions/bf6b01359cfd?raw)
