Delete segment

Prev Next
Post
/delete/segment

Used to delete a segment.

For more information on segments review our segmentation guide.

Body parameters
object
apptoken
string Required

Your App token

id
integer (int32) Required

ID of the segment

Responses
200

200

Result
{
  "success": true,
  "code": 200,
  "message": "Segment is successfully deleted"
}
object
success
boolean
Defaulttrue
Exampletrue
code
integer
Default0
Example200
message
string
ExampleSegment is successfully deleted
400

400

Result
{
  "success": false,
  "code": 400,
  "message": "General error information",
  "errors": [
    {
      "text": [
        "Detailed information about the specific error"
      ]
    }
  ]
}
Expand All
object
success
boolean
Defaulttrue
Examplefalse
code
integer
Default0
Example400
message
string
ExampleGeneral error information
errors
Array of object
object
text
Array of string
string
404

404

Result
{
  "success": false,
  "code": 404,
  "message": "Not Found"
}
object
success
boolean
Defaulttrue
Examplefalse
code
integer
Default0
Example404
message
string
ExampleNot Found