Creating a topic without subscribing devices to it
Request
To create a new topic without subscribing any devices to it, send a POST request to:
http:/<host>:<port>/mib/v2/topics
Headers
Content-Type: application/json
Mandatory fields
topicName– the name of the topic
Other fields
description– a description of the topicmanagedBy– the service that manages the topic. Must be one ofFCM,ANPS,SNS, orIOT.
Note that this field is purely informational – it does not affect anything.modifiedBy– the entity/service that created/modified the topic
A newly-created topic has a status of active by default. if you need to make the topic inactive, set active to false as explained in Updating the details of a topic.
Example
A request with this payload creates a topic but does not subscribe any devices to it:
{
"topicName": "New-Videos"
}
Response
A successful request returns an HTTP 201 status.
An unsuccessful request returns an HTTP 400 status if the topic could not be provisioned.
See also
For full details of this API, see the Device Messaging Manager (DMM) API documentation v2.