For more information on using API

PUT http://webapi.mymarketing.co.il/api/automations/{id}/triggerInfo

Update the event trigger that activates the given automation

Request Information

URI Parameters

Name

Description

Type

Additional information

id

Automation id

integer

Required

Body Parameters

ApiAutomationTriggerUpdateContainer

Name

Description

Type

Additional information

trigger_type_id

Trigger type from the triggers list

Required

trigger_object_id

Trigger object

integer
trigger_data_date_event_type

Date column name of contact fields

string
trigger_data_date_event_timing

Before/after the selected date

trigger_data_date_event_interval_value

Interval value for interval types

integer
trigger_data_date_event_interval_max_value

integer
trigger_data_date_event_interval_type

Set the value for hours / days / weeks

trigger_data_onsite_event_type

string
trigger_data_onsite_visit_url

string
trigger_data_onsite_action_name

string
trigger_data_onsite_visiting_device

segmentation_id

Segmentation id

integer
is_trigger_landing_page

Is Landing page

boolean
is_trigger_signup_forms

Is Signup Forms

boolean
trigger_data_campaign_type

string
trigger_data_campaign_id

string

Request Formats

application/json, text/json

Sample:
{
  "trigger_type_id": "AbandonedCartRecovery",
  "trigger_object_id": 1,
  "trigger_data_date_event_type": "sample string 1",
  "trigger_data_date_event_timing": "BeforeDate",
  "trigger_data_date_event_interval_value": 1,
  "trigger_data_date_event_interval_max_value": 1,
  "trigger_data_date_event_interval_type": "hour",
  "trigger_data_onsite_event_type": "sample string 2",
  "trigger_data_onsite_visit_url": "sample string 3",
  "trigger_data_onsite_action_name": "sample string 4",
  "trigger_data_onsite_visiting_device": "Browser",
  "segmentation_id": 1,
  "is_trigger_landing_page": true,
  "is_trigger_signup_forms": true,
  "trigger_data_campaign_type": "sample string 5",
  "trigger_data_campaign_id": "sample string 6"
}

application/xml, text/xml

Sample:
<ApiAutomationTriggerUpdateContainer xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ActiveTrail.RESTfulApi.Models">
  <is_trigger_landing_page>true</is_trigger_landing_page>
  <is_trigger_signup_forms>true</is_trigger_signup_forms>
  <segmentation_id>1</segmentation_id>
  <trigger_data_campaign_id>sample string 6</trigger_data_campaign_id>
  <trigger_data_campaign_type>sample string 5</trigger_data_campaign_type>
  <trigger_data_date_event_interval_max_value>1</trigger_data_date_event_interval_max_value>
  <trigger_data_date_event_interval_type>hour</trigger_data_date_event_interval_type>
  <trigger_data_date_event_interval_value>1</trigger_data_date_event_interval_value>
  <trigger_data_date_event_timing>BeforeDate</trigger_data_date_event_timing>
  <trigger_data_date_event_type>sample string 1</trigger_data_date_event_type>
  <trigger_data_onsite_action_name>sample string 4</trigger_data_onsite_action_name>
  <trigger_data_onsite_event_type>sample string 2</trigger_data_onsite_event_type>
  <trigger_data_onsite_visit_url>sample string 3</trigger_data_onsite_visit_url>
  <trigger_data_onsite_visiting_device>Browser</trigger_data_onsite_visiting_device>
  <trigger_object_id>1</trigger_object_id>
  <trigger_type_id>AbandonedCartRecovery</trigger_type_id>
</ApiAutomationTriggerUpdateContainer>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

None.