post https://example.com/rtmsAPI/api/v1/apps/$(appid)/segments/$(segmentid)
This API is used to update a segment for a topic
Request
The Update segment request is specified as follows:
URL | https:/api.imiconnect.io/rtmsAPI/api/v1/apps/$(appid)/segments/$(segmentid) Example: https://api.imiconnect.io/rtmsAPI/api/v1/apps/NA13161451/segments/59425adde4b0649ee1 |
Method | POST |
Request Headers
Request Header | Description |
---|---|
secretKey | Secret key generated in backend application. |
content-type | application/json |
##Request Example
{
"criteria": "News & (!sports) & Entertainment & offers",
"name":"News And Entertainment But Not Sports And Offers"
}
Request Body
Elements in the request body:
Type | Mandatory | Mandatory | Description |
---|---|---|---|
criteria | String | Yes | Specifies the criteria. |
name | String | No | Name of the segment. |
Response Example
{
"id" : "591d7f04e4b09e0d95d4f73f",
"trans_id" : "22a23dbc-af31-4c65-925e-8e74e115ef27",
"description" : "success",
"code" : 0
}