Skip to content

Update SMS Newsletter Draft

Tool name: update-sms-newsletter-draft

Updates name, internal note, labels, UTM campaign name and audience of an SMS newsletter that is a draft, or scheduled and not yet too close to its send date; omitted arguments stay. The audience replaces the previous one and needs an explicit mode -- "all_contacts" addresses every active contact. Text is replace-sms-newsletter-content, provider and sender configure-sms-newsletter-delivery. Sends nothing.

Input schema

newsletterIdinteger, >= 1required

ID of the SMS newsletter to change

namenull or string, <= 250 characters

New name, unique within the account, without HTML; omit to keep

Default:null
notesnull or string, <= 1000 characters

Internal note; empty string removes it, omit keeps it

Default:null
labelsArray of strings, <= 50 items
Default:null
utmCampaignNamenull or string, <= 120 characters

Campaign name appended to tracked links as utm_campaign, at most 120 characters; empty string restores the account default; omit to keep

Default:null
audienceobject
Default:null
accountIdnull or integer, >= 1

User ID of the account; omit for the account of the access token

Default:null
Input example
{ "newsletterId": 1, "name": null, "notes": null, "labels": null, "utmCampaignName": null, "audience": null, "accountId": null }

Output schema

accountIdintegerrequired
newsletterIdintegerrequired
namestringrequired
notesstringrequired
labelsArray of stringsrequired
statusstringrequired
Enum:"draft""scheduled""outgoing""sent"
isSplitTestbooleanrequired
smsobject or nullrequired
audienceobjectrequired
sendAtstring or nullrequired
missingForDispatchArray of stringsrequired
editUrlstringrequired
scheduleUrlstringrequired
statisticsUrlstringrequired
Output example
{ "accountId": 0, "newsletterId": 0, "name": "string", "notes": "string", "labels": [ "string" ], "status": "draft", "isSplitTest": true, "sms": { "smsId": 0, "text": "string", "senderName": "string", "provider": "string", "linkTracking": true, "contentUrl": "string" }, "audience": { "mode": "all_contacts" }, "sendAt": "string", "missingForDispatch": [ "string" ], "editUrl": "string", "scheduleUrl": "string", "statisticsUrl": "string" }