UpdateTemplate

Updates a template

This method updates a template within your account. The information entered will replace any existing information for the template.

SOAP action: http://apiconnector.com/v2/ApiService/UpdateTemplate

📘

Input and output parameters

The input and output parameters for this method are:

Input parameters

  • Template
    • Name - required; string
    • Subject - required; string
    • FromName - required; string
    • HtmlContent - required; string
    • PlainTextContent - required; string

Output parameters

  • UpdateTemplateResult
    • Id - integer
    • Name - string
    • Subject - string
    • FromName - string
    • HtmlContent - string
    • PlainTextContent - string
    • ReplyAction - string (Unset', 'WebMailForward', 'Webmail', 'Delete')
    • ReplyToAddress - string

Example

using (var client = new ApiServiceClient())
{
	client.ClientCredentials.UserName.UserName = "username";
	client.ClientCredentials.UserName.Password = "password";

	var templateId = 1;
	var template = client.GetTemplateById(templateId);
	template.Name = "TestTemplateName";
	var updatedTemplate = client.UpdateTemplate(template);
}