PUT https://webapi.mymarketing.co.il/api/campaigns/{id}/scheduling
Update campaign schedule. Please note: only campaigns that are in draft mode can be updated
Request Information
URI Parameters
Name
Description
Type
Additional information
id
Campaign id.Can be found using the endpoint "Get account's email campaigns..." or in the UI(go to Emails->Emails Lists->click on the campaign's preview -> you'll find the id int the URL)
integer
Required
Body Parameters
Name
Description
Type
Additional information
is_sent
Whether or not to send the campaign.
boolean
Required
scheduled_date_utc
The date the campaign will be/was sent. If you use the post endpoint - date cannot be in past time.
date
Required
Request Formats
application/json, text/json
Sample:
{ "is_sent": true, "scheduled_date_utc": "2016-12-24T14:12:12" }
application/xml, text/xml
Sample:
<ApiCampaignScheduling xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ActiveTrail.RESTfulApi.Models"> <is_limit_to_confirmed>true</is_limit_to_confirmed> <is_sent>true</is_sent> <scheduled_date_utc>2016-12-24T14:12:12</scheduled_date_utc> </ApiCampaignScheduling>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
None.