For more information on using API

PUT https://webapi.mymarketing.co.il/api/automations/{id}/activation

Activate/de-activate a given automation

Request Information

URI Parameters

Name

Description

Type

Additional information

id

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)

integer

Required

Body Parameters

ApiAutomationActivationInfo

Name

Description

Type

Additional information

is_published

If the automation is published

boolean
scheduled_time

Scheduled time for the automation activation

date

Request Formats

application/json, text/json

Sample:
{
  "is_published": true,
  "scheduled_time": "2016-12-24T14:12:12"
}

application/xml, text/xml

Sample:
<ApiAutomationActivationInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ActiveTrail.RESTfulApi.Models">
  <is_published>true</is_published>
  <scheduled_time>2016-12-24T14:12:12</scheduled_time>
</ApiAutomationActivationInfo>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

None.