PUT https://webapi.mymarketing.co.il/api/automations/{id}/details
Update the setup of the given automation
Request Information
URI Parameters
Name
Description
Type
Additional information
Automation id. Can be found using the endpoint "Get account's automations" or in the UI (go to Automations->Automations Lists->click on the automation's reports -> you'll find the id int the URL)
Required
Body Parameters
Name
Description
Type
Additional information
Name of automation
If a contact can go through the automation multipule times
Interval type of report sending (0 / 12 / 24 /36 )
Email address that will recieve the reports
If to send report
The UTC date when the automation was last updated
The UTC date when the automation was created
Object that contains the extended automation details (reruntrigger, etc.) See AutomationExtendedDetailsInfo for more information
Request Formats
application/json, text/json
{ "name": "sample string 1", "allow_trigger_multiple_times": true, "report_interval_type": "Immediate", "report_send_to": "sample string 2", "is_send_report": true, "date_updated_utc": "2016-12-24T14:12:12", "date_created_utc": "2016-12-24T14:12:12", "extended_details": { "rerun_trigger": true, "working_days": [ { "day": 1, "from": "00:00:00.1234567", "to": "00:00:00.1234567" }, { "day": 1, "from": "00:00:00.1234567", "to": "00:00:00.1234567" } ] } }
application/xml, text/xml
<ApiAutomationDetailsInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ActiveTrail.RESTfulApi.Models"> <allow_trigger_multiple_times>true</allow_trigger_multiple_times> <date_created_utc>2016-12-24T14:12:12</date_created_utc> <date_updated_utc>2016-12-24T14:12:12</date_updated_utc> <extended_details> <rerun_trigger>true</rerun_trigger> <working_days> <ApiAutomationExtendedDetailsWorkingDays> <day>1</day> <from>PT0.1234567S</from> <to>PT0.1234567S</to> </ApiAutomationExtendedDetailsWorkingDays> <ApiAutomationExtendedDetailsWorkingDays> <day>1</day> <from>PT0.1234567S</from> <to>PT0.1234567S</to> </ApiAutomationExtendedDetailsWorkingDays> </working_days> </extended_details> <is_send_report>true</is_send_report> <name>sample string 1</name> <report_interval_type>Immediate</report_interval_type> <report_send_to>sample string 2</report_send_to> </ApiAutomationDetailsInfo>
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
None.