Skip to main content
DELETE
AhaSend Go SDK
The AhaSend API deletes one segment. Access requires segments:delete. After the delete, the segment cannot be read, and its members are removed shortly after. The contacts themselves stay. A campaign that still needs the segment, as an included or an excluded segment, blocks the delete with 409. Campaigns in draft, validating, scheduled, sending, paused or waiting_for_review block it. Campaigns in sent, failed or canceled do not. A segment that is being changed also answers 409. See Conflicts. A second delete of the same segment answers 404.

Authorizations

Authorization
string
header
required

API key for authentication. Non-empty Security Requirement values are AhaSend API-key roles. Roles listed within one requirement object are jointly required; separate requirement objects are alternatives.

Path Parameters

account_id
string<uuid>
required

Account ID

segment_id
string<uuid>
required

Segment ID

Response

Segment deleted

message
string
required

Success message