Skip to main content
Skip table of contents

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:

BASH
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 topic

  • managedBy – the service that manages the topic. Must be one of FCM, ANPS, SNS, or IOT.
    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:

CODE
{
  "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.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.