Skip to main content
DELETE
AhaSend Go SDK
The AhaSend API deletes a draft campaign with its design and its audience choices. Access requires campaigns:delete. A campaign that is not a draft answers 409. A campaign that a segment names in a campaign condition also answers 409, with a message that names the segments: Used by segments: A, B. Change those segments first. See Conditions. A second delete of the same campaign answers 404. Deleting a campaign does not delete its lists, its segments or its contacts.

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

campaign_id
string<uuid>
required

Campaign ID

Response

Campaign deleted

message
string
required

Success message