API DOCUMENTATION Last Update: Apr 2022

Triggers - Delete

Deletes a Trigger permanently.

The data to be submitted to the API is composed of the following fields:

 

  field   Example   Note
API 1.5 Required
user_id john1970 Required
user_api_key 1959ca5645adac9b13dcb3 Required
account_id greatwidgets Required
type manage_campaign_triggers Required
action delete Required
trigger_id 210 Required
Output Format:
output JSON or XML Optional. If not provided, defaults to XML
callback someFunctionName Optional: JSONP format
condensed yes Optional (No white space)
Applies only to JSON(P) output

 

 

Example PHP Request:

If you are using PHP, the $data array would look like this:

  1. $data['API'] = '1.5';
  2. $data['user_id'] = 'john1970';
  3. $data['user_api_key'] = '1959caadac9b13dcb3';
  4. $data['type'] = 'manage_campaign_triggers';
  5. $data['action'] = 'delete';
  6. $data['account_id'] = 'greatwidgets';
  7. $data['trigger_id'] = '210';

 

Success XML Response:

  1. <response status="success"></response>

Error XML Response:

  1. <response status="error">
  2. <error>Error message</error>
  3. </response>