PATCH
/
v1
/
topics
/
{topicKey}
curl --request PATCH \
  --url https://api.novu.co/v1/topics/{topicKey} \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>"
}'
{
  "data": {
    "_id": "<string>",
    "_organizationId": "<string>",
    "_environmentId": "<string>",
    "key": "<string>",
    "name": "<string>",
    "subscribers": [
      "<string>"
    ]
  }
}

Enter your API key in the Authorization field like the example shown below:

E.g ApiKey 18d2e625f05d80e

Authorizations

Authorization
string
headerrequired

API key authentication. Allowed headers-- "Authorization: ApiKey <api_key>".

Path Parameters

topicKey
string
required

The topic key

Body

application/json
name
string
required

User defined custom name and provided by the user to rename the topic.

Response

200 - application/json
data
object