PUT https://webapi.mymarketing.co.il/api/templates/{Id}/content
Update template's content.
Request Information
URI Parameters
Name
Description
Type
Additional information
Template id. Can be found using the endpoint "Get account's "my templates"" or in the UI(go to "Emails" -> "My Templates" -> click on your desired template -> you'll find the ID at the end of the URL).
Required
Body Parameters
Name
Description
Type
Additional information
The template's name
Required
The subject of the email that will be sent - for operational messages only
Template classification. Used to classify operational messages reports
Add Print Button
To which category the template will be added to. Can be found using the endpoint "Get "my templates" categories".
Template category Name. Will be the category name that is related to the category ID. Can be removed in a post/put endpoint
Campaign encoding of the given template. UTF-8 is recommended in a post/put endpoint
The template's content. A clean text (without any design to it) or HTML content. if you send HTML content please note you should use back-slash before each quatation mark.
Request Formats
application/json, text/json
{ "name": "sample string 1", "subject": "sample string 2", "classification": "sample string 6", "AddPrintButton": true, "template_category_id": 8, "template_category_name": "sample string 9", "campaign_encoding": "IBM_EBCDIC_US_Canada", "content": "sample string 11" }
application/xml, text/xml
<ContentTemplateUpdateInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ActiveTrail.RESTfulApi.Models"> <AddPrintButton>true</AddPrintButton> <campaign_encoding>IBM_EBCDIC_US_Canada</campaign_encoding> <classification>sample string 6</classification> <content>sample string 11</content> <frome_mail>sample string 4</frome_mail> <frome_name>sample string 3</frome_name> <mail_subject>sample string 5</mail_subject> <name>sample string 1</name> <subject>sample string 2</subject> <template_category_id>8</template_category_id> <template_category_name>sample string 9</template_category_name> </ContentTemplateUpdateInfo>
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
None.