In this article
Delete a topic
This endpoint is used to delete a topic.
URL
https://{{HOST}}/udp/topic/{topicName}
Method
DELETE
Required IMS Scopes
- apollo_admin
URL Path Variable
| Name | Description | Example | Type |
|---|---|---|---|
| topicName required |
topic name | /topic/temperature | string |
Request Header Parameters
| Type | Value | Description |
|---|---|---|
| Authentication required |
Bearer {access_token} | IMS access token |
Example
Request
curl -X DELETE
'https://{{HOST}}/udp/topic/temperature'
-H 'Authorization: Bearer {access_token}'
-H 'Content-Type: application/json'
Response
{
"message": "Topic deleted successfully",
"status": "Success"
}
Errors
| Code | Description |
|---|---|
| 400 | The request could not be understood by the server due to malformed syntax. |
| 403 | The request can not be processed if token is not valid or expired. |