Interface IEmailTemplatesClient
- Namespace
- Auth0.ManagementApi.Clients
- Assembly
- Auth0.ManagementApi.dll
public interface IEmailTemplatesClient
Methods
CreateAsync(EmailTemplateCreateRequest, CancellationToken)
Creates a new email template.
Task<EmailTemplate> CreateAsync(EmailTemplateCreateRequest request, CancellationToken cancellationToken = default)
Parameters
requestEmailTemplateCreateRequestThe EmailTemplateCreateRequest containing details of the template to create.
cancellationTokenCancellationTokenThe cancellation token to cancel operation.
Returns
- Task<EmailTemplate>
The newly created EmailTemplate.
GetAsync(EmailTemplateName, CancellationToken)
Gets an email template.
Task<EmailTemplate> GetAsync(EmailTemplateName templateName, CancellationToken cancellationToken = default)
Parameters
templateNameEmailTemplateNameThe name of email template you wish to retrieve.
cancellationTokenCancellationTokenThe cancellation token to cancel operation.
Returns
- Task<EmailTemplate>
The EmailTemplate that was requested.
PatchAsync(EmailTemplateName, EmailTemplatePatchRequest, CancellationToken)
Updates an email template.
Task<EmailTemplate> PatchAsync(EmailTemplateName templateName, EmailTemplatePatchRequest request, CancellationToken cancellationToken = default)
Parameters
templateNameEmailTemplateNameThe name of the email template to update.
requestEmailTemplatePatchRequestThe EmailTemplatePatchRequest containing details of the template to patch.
cancellationTokenCancellationTokenThe cancellation token to cancel operation.
Returns
- Task<EmailTemplate>
The newly updated EmailTemplate.
UpdateAsync(EmailTemplateName, EmailTemplateUpdateRequest, CancellationToken)
Updates an email template.
Task<EmailTemplate> UpdateAsync(EmailTemplateName templateName, EmailTemplateUpdateRequest request, CancellationToken cancellationToken = default)
Parameters
templateNameEmailTemplateNameThe name of the email template to patch.
requestEmailTemplateUpdateRequestThe EmailTemplateUpdateRequest containing details of the template to update.
cancellationTokenCancellationTokenThe cancellation token to cancel operation.
Returns
- Task<EmailTemplate>
The newly updated EmailTemplate.