Skip to main content

Delete Segment

This endpoint allows for the deletion of a segment. This call accepts form-encoded request bodies and returns responses in JSON format.

POST
 https://api.pushengage.com/apiv1/segments/delete

Request Parameters

Parameter NameTypeRequiredDescription
segment_idNumberYesThe unique identifier for the segment. Use this ID to delete the segment.

Response Object

Property NameTypeRequiredDescription
successBooleanYesIndicates if the request was successful. Possible values are true or false.
messageStringYesProvides a message explaining the outcome, whether it's a success or failure.

Example

Request

curl -X POST -H "api_key: <your_pushengage_api_key>" -H "Content-Type: application/x-www-form-urlencoded" -d 'segment_id=12345' "https://api.pushengage.com/apiv1/segments/delete"

Response

{
"message": "Segment successfully deleted",
"success": true
}