{
  1. Intro
  2. From domains
    1. Get all from domains
    2. Get specific from domain
    3. Create from domain
    4. Verify from domain
    5. Delete from domain
    6. From domain object definition
  3. From addresses
    1. Get all from addresses
    2. Get specific from address
    3. Create from address
    4. Update from address
    5. Delete from address
    6. From address object definitions
  4. Address lists
  5. Templates
    1. Get all templates
    2. Get specific template
    3. Create template
    4. Update template
    5. Delete template
    6. Template object definitions
  6. Campaigns
    1. Get all campaigns
    2. Get specific campaign
    3. Create campaign
    4. Update campaign
    5. Delete campaign
    6. Clone campaign
    7. Get statistics
    8. Get clicks
    9. Get statistics details
    10. How to use triggered campaigns
    11. Campaign object definitions
  7. Mailings
    1. Get all mailings
    2. Get specific mailing
    3. Create mailing
    4. Update mailing
    5. Delete mailing
    6. Get statistics
    7. How to use merge fields
    8. Mailing object definitions
  8. Mails
    1. Create mail
    2. Create triggered mail
    3. Get statistics details
    4. Mail object definitions
  9. Unsubscriptions
    1. Get all unsubscriptions
    2. Create unsubscription
    3. Delete unsubscription
    4. Unsubscription object definition
  10. Webhooks
    1. Get webhook
    2. Create or update webhook
    3. Delete webhook
    4. Webhook object definition
    5. How to implement the webhook

Update a mailing

Update a mailing.

PUT https://api.cmtelecom.com/bulkemail/v1.0/accounts/{accountID}/campaigns/{campaignID}/mailings/{mailingID}

PUT Parameters

Name In Description Required Type Example
AccountID Path The account guid True Guid A8C062E4-ECFD-48D0-89B1-A37D2622B7A9
CampaignID Path The mailing guid True Guid 77E6A0A6-0C92-4138-89BD-886EDF2RCC0D
MailingID Path The mailing guid True Guid B6D33812-24CC-48E3-B7DD-354715051A85
Body Body The mailing to update True Json object { "Name": "Demo", "Template": { "Name": "Demo Template", "Description": "Demo description", "HtmlBody": "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional //EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\"><html><body><p> Hello {{ Recipient.Name }}</p></body></html>", "TextBody": "Hello {{ Recipient.Name }}", "MergeFields": { "MergeTags": [ { "Name": "Recipient.Name", "Value": "{{ Recipient.Name }}", "Mapping": "Recipient.MergeFieldValue1" }, { "Name": "Sender.EmailAddress", "Value": "{{ Sender.EmailAddress }}", "Mapping": "Sender.EmailAddress" }, { "Name": "Recipient.EmailAddress", "Value": "{{ Recipient.EmailAddress }}", "Mapping": "Recipient.EmailAddress" } ], "SpecialLinks": [ { "Type": "system", "Label": "Unsubscribe", "Link": "[[ SpecialLink.Unsubscribe ]]", "Mapping": "SpecialLink.Unsubscribe" }, { "Type": "system", "Label": "Subscribe", "Link": "[[ SpecialLink.Subscribe ]]", "Mapping": "SpecialLink.Subscribe" }, { "Type": "system", "Label": "View in browser", "Link": "[[ SpecialLink.ViewInBrowser ]]", "Mapping": "SpecialLink.ViewInBrowser" }, { "Type": "system", "Label": "Viewed", "Link": "[[ SpecialLink.Pixel ]]", "Mapping": "SpecialLink.Pixel" } ] } }, "FromName": "John Doe", "FromAddressID": "05923f4c-eb2e-4e4b-a07a-096fcbb2697a", "Subject": "Demo", "MailingState": 2, "ScheduledOn": null, "MailingType": 1 }
X-CM-PRODUCTTOKEN Header Your product token True Guid C24A5029-37DD-4161-9728-F80D8639588E

Responses

Http status Description Example
200 Mailing updated { "ID": "b6d33812-24cc-48e3-b7dd-354715051a85", "AccountID": "a8c062e4-ecfd-48d0-89b1-a37d2622b7a9", "CampaignID": "77e6a0e6-0c92-4138-89bd-886edf2ecc0d", "Name": "Demo", "Template": { "ID": "dfd26818-88e9-4d1a-8a79-20ce44ea12fa", "AccountID": "a8c062e4-ecfd-48d0-89b1-a37d2622b7a9", "Name": "Demo Template", "Description": "Demo description", "HtmlBody": "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional //EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\"><html><body><p> Hello {{ Recipient.Name }}</p></body></html>", "TextBody": "Hello {{ Recipient.Name }}", "Json": null, "MergeFields": { "MergeTags": [ { "Name": "Recipient.Name", "Value": "{{ Recipient.Name }}", "Mapping": "Recipient.MergeFieldValue1" }, { "Name": "Sender.EmailAddress", "Value": "{{ Sender.EmailAddress }}", "Mapping": "Sender.EmailAddress" }, { "Name": "Recipient.EmailAddress", "Value": "{{ Recipient.EmailAddress }}", "Mapping": "Recipient.EmailAddress" } ], "SpecialLinks": [ { "Type": "system", "Label": "Unsubscribe", "Link": "[[ SpecialLink.Unsubscribe ]]", "Mapping": "SpecialLink.Unsubscribe" }, { "Type": "system", "Label": "Subscribe", "Link": "[[ SpecialLink.Subscribe ]]", "Mapping": "SpecialLink.Subscribe" }, { "Type": "system", "Label": "View in browser", "Link": "[[ SpecialLink.ViewInBrowser ]]", "Mapping": "SpecialLink.ViewInBrowser" }, { "Type": "system", "Label": "Viewed", "Link": "[[ SpecialLink.Pixel ]]", "Mapping": "SpecialLink.Pixel" } ] }, "CreatedOn": "2017-08-08T15:25:40.9959989+02:00", "ModifiedOn": "2017-08-08T15:25:40.9959989+02:00", "DeletedOn": null }, "FromName": "John Doe", "FromAddressID": "05923f4c-eb2e-4e4b-a07a-096fcbb2697a", "Subject": "Demo", "MailingState": 2, "ScheduledOn": null, "MailingType": 1, "CreatedOn": "2017-08-08T15:25:40.9959989+02:00", "ModifiedOn": "2017-08-08T15:25:40.9959989+02:00", "DeletedOn": null }
400 Bad request

Try it out