Schedule an SMS campaign
PUT /sms_campaigns/{uuid}/actions/schedule
/sms_campaigns/{uuid}/actions/scheduleSCHEDULES THE CAMPAIGN FOR REAL: sets the date and time at which the text message will be sent to all its recipients, with no further action. Nothing goes out now; at that time the same real send as send_sms_campaign_now happens, to real people, and it cannot be recalled. Before sending, check with get_sms_campaign that the campaign has recipients (recipient_count above 0), no entry in warnings has blocks_sending: true (for example not enough SMS credits), and its status is draft, ready or scheduled. The API does not check recipients, credits or account status when scheduling: they are checked when the scheduled time arrives, and if the check fails the campaign moves to campaign.status.error and nothing is sent.
When to use: Only when the person has confirmed the SMS campaign and the date at which it must go out to all its recipients.
When not to use: To send right away, use send_sms_campaign_now. To check the message first, use send_sms_campaign_test. For an email campaign, use campaign_schedule.
Side effects: The status becomes campaign.status.scheduled and the send is queued for the date. At that time real SMS go out and SMS credits are used. Until then the campaign can be edited with update_sms_campaign. Scheduling an already scheduled campaign replaces its date. There is no operation to cancel a scheduled SMS campaign: to stop it, delete it with delete_sms_campaign.
Permissions: Requires the manager role or higher, or the marketing.campaigns.send capability.
Value for the X-Auth-Token header parameter.
In: header
Path Parameters
UUID of the SMS campaign (the uuid field returned by list_sms_campaigns).
The updated SmsCampaign resource
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X PUT "https://api.easymailing.com/sms_campaigns/b6c9e1f3-2a74-4d58-8e0b-3f7a5d1c9e42/actions/schedule" \ -H "X-Auth-Token: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "campaign_confirmation_email": true, "mailing_confirm_emails": [ "user@example.com" ], "schedule_mailing_date": "2019-08-24T14:15:22Z" }'null