Topics
Update a topic
Changed onUpdate a topic name or data by its unique key identifier topicKey
patch/v2/topics/{topicKey}
Request
- Base URLhttps://api.novu.co
- AuthAPI key in header Authorization
Path parameters
topicKeystring required
The key identifier of the topic
Headers
idempotency-keystring
A header for idempotency purposes
Request body
Example request
{
"name": "Updated Topic Name",
"data": {
"category": "product",
"priority": 1
}
}Response
OK
Example response
{
"_id": "64da692e9a94fb2e6449ad06",
"key": "product-updates",
"name": "Product Updates",
"data": {
"category": "product",
"priority": 1
},
"createdAt": "2023-08-15T00:00:00.000Z",
"updatedAt": "2023-08-15T00:00:00.000Z"
}Changes
- warning
the
request property's maxLength was set to100 - info
added the new optional request property
- info
the request property
became optional - info
added the optional property
to the response with the status
- warning