POST https://webapi.mymarketing.co.il/api/automations/{id}/ContactUpdateSteps
Add a Contact Update step in the automation
Request Information
URI Parameters
Name
Description
Type
Additional information
id
Automation id
integer
Required
Body Parameters
Name
Description
Type
Additional information
entity_id
Group id / Field id
integer
entity_value
Value to update
string
is_active
If the step is active
boolean
Required
Request Formats
application/json, text/json
Sample:
{ "action_type": "AddToGroup", "entity_id": 1, "entity_value": "sample string 1", "is_active": true }
application/xml, text/xml
Sample:
<ApiAutomationContactStepUpdateInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ActiveTrail.RESTfulApi.Models"> <action_type>AddToGroup</action_type> <entity_id>1</entity_id> <entity_value>sample string 1</entity_value> <is_active>true</is_active> </ApiAutomationContactStepUpdateInfo>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Name
Description
Type
Additional information
id
Step id
integer
object_id
Not in use here
integer
entity_id
Group id / Field id
integer
entity_value
Value to update
string
is_active
If the step is active
boolean
Required
Response Formats
application/json, text/json
Sample:
{ "id": 1, "object_id": 1, "type": "EmailCampaign", "action_type": "AddToGroup", "entity_id": 1, "entity_value": "sample string 1", "is_active": true }
application/xml, text/xml
Sample:
<ApiAutomationContactStepInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ActiveTrail.RESTfulApi.Models"> <action_type>AddToGroup</action_type> <entity_id>1</entity_id> <entity_value>sample string 1</entity_value> <id>1</id> <is_active>true</is_active> <object_id>1</object_id> <type>EmailCampaign</type> </ApiAutomationContactStepInfo>