Problem Deleting Campaign


I have been successfully adding lists, campaigns, etc. Everything had gone very smooth until I needed to delete a campaign. Following this: returns an error: 102 Invalid ClientID, I have tried multiple variations but nothing seems to work. From what I can see I am not even passing ClientID, only API Key and Campaign ID. Any help would be very much appreciated.


jamesd jamesd, 6 years ago

Hey Masha,

How are you making your request to{campaignid}.{xml|json}? Keep in mind that you need to use the DELETE HTTP verb, as per the documentation.

If you're not already doing so, you might find using one of our API Wrappers useful. These give you an abstraction above the details of the actual HTTP requests being made to our API servers.

masha, 6 years ago

I am working in ColdFusion. Thanks for the tip, I wasn't passing the 'delete' method. It works now. Here is the code:

<!--- Sending request --->
    <cfhttp url="" method="delete" result="httpResult" port="80">
    <cfhttpparam type="header" name="Authorization" value="#BasicAuthorization#" />
    <cfhttpparam type="header" name="accept-encoding" value="no-compression"  />
    <cfhttpparam type="xml" value="" />       


200,000 companies around the world can't be wrong.

From Australia to Zimbabwe, and everywhere in between, companies count on 
Campaign Monitor for email campaigns that drive real business results.

Get started for free