EmailMessages APIs
-
Updates Existing Email Message
Description: Updates the Email message parameters and content.Usage:
PUT api/Messages/Email/Update/{EmailCode}
Parameter Type Source Description EmailCode Int32 FromUri The unique numerical code of the Email message to update EmailObject Email_Message FromBody The Email_Message object containing the modifications Returns:
Returns 0 on success
Examples:
<!-- Intent: Update email message with emailcode of 100000 PUT to the following url http://api.v4.swiftreach.com/api/Messages/Email/Update/100000 --> <Email_Message xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema/SwiftReach.Swift911.Core.Messages.Email"> <EmailCode>100000</EmailCode> <Name>API Email</Name> <Description>created by api</Description> <FromName>SwiftAPI</FromName> <FromAddress>alerts@swiftreach.com</FromAddress> <DefaultSpokenLanguage>English</DefaultSpokenLanguage> <Content> <Email_Content> <SpokenLanguage>English</SpokenLanguage> <Subject>my subject</Subject> <Body> <EMAIL_TEXT_SOURCE xsi:type="EMAIL_TEXT_SOURCE_TEXT"> <Text>this is the body of my email</Text> <TextType>email_text_source_text</TextType> </EMAIL_TEXT_SOURCE> </Body> </Email_Content> </Content> </Email_Message> <!-- example return value --> <int>123456</int>