Deleting a topic
Request
To delete a topic, send a PUT request to:
http://<host>:<port>/mib/v1/topics/{topicName}/devices
You cannot delete a topic if any devices are subscribed to it. You must unsubscribe all the devices first.
Headers
Content-Type: application/json
Mandatory fields
topicName
(in both URL and payload) – the name of the topicactive
– set tofalse
.
Example
A request with this payload deletes the specified topic:
{
"topicName": "New-Videos",
"active": false
}
Response
A successful request returns an HTTP 200 status.
An unsuccessful request returns an HTTP 404 status if the topic does not exist.
See also
For full details of this API, see the DMM API documentation.