Create or Update a Segment
This API is used to both create a new segment or update an existing segment.
When creating a segment, the id should not be included. When updating a segment, include the id of the segment to update.
{
"id": 18492,
"name": "10DLC Do Not Contact",
"description": "Customers who have opted out of 10DLC content ",
"search": "",
"segmentType": "Static",
"is_call_list": false
}
Only required when updating a segment. Should be the id of the segment to update
The description of the segment.
Required if the segmentType is Dynamic. Not required for static segments.
The segment type can be Static or Dynamic. If Dynamic, the search must also be specified.
A boolean (true/false) to set the segment is call list flag.
{
"Status": true,
"Message": "",
"Response": {
"id": 136
}
}