Beispiel #1
0
 /// <inheritdoc />
 public Task <EmailTemplate> PatchAsync(EmailTemplateName templateName, EmailTemplatePatchRequest request)
 {
     return(Connection.PatchAsync <EmailTemplate>("email-templates/{templateName}", request, new Dictionary <string, string>
     {
         { "templateName", ToEnumString <EmailTemplateName>(templateName) }
     }));
 }
Beispiel #2
0
 /// <summary>
 /// Updates an email template.
 /// </summary>
 /// <param name="templateName">The name of the email template to update.</param>
 /// <param name="request">The <see cref="EmailTemplatePatchRequest"/> containing details of the template to patch.</param>
 /// <returns>The newly updated <see cref="EmailTemplate"/>.</returns>
 public Task <EmailTemplate> PatchAsync(EmailTemplateName templateName, EmailTemplatePatchRequest request)
 {
     return(Connection.SendAsync <EmailTemplate>(new HttpMethod("PATCH"), BuildUri($"email-templates/{templateName.ToEnumString()}"), request, DefaultHeaders));
 }