DELETE
cURL
Deletes a segment. Refused with 409 while a scheduled or sending campaign uses it. Draft campaigns that used it go back to the whole contact book, and are listed in the response.
Needs an API key with full access. Not available to a key limited to one domain.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

segmentId
string
required
Minimum string length: 1
Example:

"clx1234567890"

Response

Deleted. Draft campaigns that used it go back to the whole contact book.

deleted
boolean
required
draftsNowSendingToWholeBook
object[]
required