PUT http://webapi.mymarketing.co.il/api/automations/{id}/design
Update the JSON that represents the design of the automation flow in the UI including the data of the given automation
Request Information
URI Parameters
Name
Description
Type
Additional information
id
Automation id
integer
Required
Body Parameters
Name
Description
Type
Additional information
data
JSON data that represent the UI in the builder in the web appli\cation
string
Request Formats
application/json, text/json
Sample:
{ "data": "sample string 1", "stepsInfo": [ { "id": 1, "type": "EmailCampaign", "object_id": 1, "is_active": true }, { "id": 1, "type": "EmailCampaign", "object_id": 1, "is_active": true } ] }
application/xml, text/xml
Sample:
<ApiAutomationDesignInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ActiveTrail.RESTfulApi.Models"> <data>sample string 1</data> <stepsInfo> <ApiAutomationStepDesignInfo> <id>1</id> <is_active>true</is_active> <object_id>1</object_id> <type>EmailCampaign</type> </ApiAutomationStepDesignInfo> <ApiAutomationStepDesignInfo> <id>1</id> <is_active>true</is_active> <object_id>1</object_id> <type>EmailCampaign</type> </ApiAutomationStepDesignInfo> </stepsInfo> </ApiAutomationDesignInfo>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
None.