DELETE
/contacts/{contact_id}/segments/{segment_id}Remove a contact from a segment
Removes a contact from a segment. Supply the contact’s ID or email address and the segment ID to select the membership to remove.
contact_idstringrequired
The contact’s ID or email address.
segment_idstringrequired
The ID of the segment to remove the contact from.
200Returns the response object type, contact ID, segment ID, and a boolean indicating whether the contact was removed from the segment.
objectstringoptional
The object type.
contact_idstringoptional
The ID of the contact.
segment_idstringoptional
The ID of the segment.
deletedbooleanoptional
Indicates whether the contact was successfully removed from the segment.
Error handling
The contact_id path parameter must identify the contact by ID or email address. The segment_id path parameter must identify the segment to remove the contact from.