Delete a List Segment
Permanently delete a segment from a subscriber list. This action will remove the segment and its conditions from the list.
๐๏ธ Delete a List Segment
๐น HTTP Request
DELETE API-URL/lists/LIST-UNIQUE-ID/segments/SEGMENT-UNIQUE-ID๐ธ URL Segments
Segment
Required
Description
๐ Authorization Header
X-API-KEY: your-api-key-here๐ป PHP Example
// Delete SEGMENT
$response = $endpoint->delete('LIST-UNIQUE-ID', 'SEGMENT-UNIQUE-ID');
// DISPLAY RESPONSE
echo '<hr /><pre>';
print_r($response->body);
echo '</pre>';๐ฆ Sample JSON Response
Last updated