This API is used to update a segment for a topic

Request

The Update segment request is specified as follows:

URLhttps:/api.imiconnect.io/rtmsAPI/api/v1/apps/$(appid)/segments/$(segmentid)

Example: https://api.imiconnect.io/rtmsAPI/api/v1/apps/NA13161451/segments/59425adde4b0649ee1
MethodPOST

Request Headers

Request HeaderDescription
secretKeySecret key generated in backend application.
content-typeapplication/json

##Request Example

{
	"criteria":  "News & (!sports) & Entertainment & offers",
	"name":"News And Entertainment But Not Sports And Offers"
}

Request Body

Elements in the request body:

TypeMandatoryMandatoryDescription
criteriaStringYesSpecifies the criteria.
nameStringNoName of the segment.

Response Example

{
	"id" : "591d7f04e4b09e0d95d4f73f",
	"trans_id" : "22a23dbc-af31-4c65-925e-8e74e115ef27",
	"description" : "success",
	"code" : 0
}
Language
Click Try It! to start a request and see the response here!