Get Segment by ID
The Get Segment by ID API accepts a segment ID as an input parameter and responds with a segment details matching the Segment ID.
URL
The HTTP URL for Get Segment by ID API is:
http://<host>:<port>/api/v1/segments/<id>
This service implements Gateway Filter for Authentication to authenticate access of the service by a user.
Method
GET
Output Parameters
The following fields are output parameters:
Sample Response
{ "id" : 5, "name" : "Flipkart Segment", "owner" : "admin", "segmentDefinition" : "", "conditionType" : "all", "lastModifiedBy" : "admin", "lastModifiedDateStr" : "06/21/2016 03:25:01 PM IST", "createdBy" : "admin", "createdDateStr" : "06/21/2016 03:25:01 PM IST", "segmentAudienceList" : [ { "attributeOperator" : "Contains", "attributeValue" : "yahoo", "attributeName" : "email", "conditionNo" : 1 }, { "attributeOperator" : "Contains", "attributeValue" : "9", "attributeName" : "mobileNumber", "conditionNo" : 2 } ] }
Response Status
Code | Description |
---|---|
Status 200 | Segment details |
Status 400 | Invalid request format |
Status 401 | Unauthorized request |
Status 500 | Server failure to process request |