post https://api.imiconnect.io/rtmsAPI/api/v1/apps/$(appid)/topics
This API is used to create topics for a specific appId.
Request
The Create Topic request is specified as follows:
Request Headers
Request Header | Description |
---|---|
secretKey | Secret key generated in backend application. |
content-type | application/json |
##Request Example
{
"name" : "offers",
"ref" : "offer ref",
"topic_group" : "Extra Benefits",
"description" : "Get Benefits from this topic"
}
Request Body
Parameter | Type | Mandatory | Description |
---|---|---|---|
name | String | Yes | Specifies the name of the user. |
ref | String | No | Used to store input data. |
topic_group | String | No | Used to store input data. |
description | String | Yes | Describes the topic. |
Response Example
{
"id" : "591d7f04e4b09e0d95d4f73f",
"trans_id" : "22a23dbc-af31-4c65-925e-8e74e115ef27",
"description" : "success",
"code" : 0
}