Package com.auth0.client.mgmt
Class EmailTemplatesEntity
java.lang.Object
com.auth0.client.mgmt.EmailTemplatesEntity
Class that provides an implementation of the Email Templates methods of the Management API as defined in https://auth0.com/docs/api/management/v2#!/Email_Templates
This class is not thread-safe.
- See Also:
ManagementAPI
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreate(EmailTemplate template)
Create an Email Template.Request the Email Templates.update(String templateName, EmailTemplate template)
Patches the existing Email Template.
-
Field Details
-
TEMPLATE_VERIFY_EMAIL
- See Also:
- Constant Field Values
-
TEMPLATE_RESET_EMAIL
- See Also:
- Constant Field Values
-
TEMPLATE_WELCOME_EMAIL
- See Also:
- Constant Field Values
-
TEMPLATE_BLOCKED_ACCOUNT
- See Also:
- Constant Field Values
-
TEMPLATE_STOLEN_CREDENTIALS
- See Also:
- Constant Field Values
-
TEMPLATE_ENROLLMENT_EMAIL
- See Also:
- Constant Field Values
-
TEMPLATE_CHANGE_PASSWORD
- See Also:
- Constant Field Values
-
TEMPLATE_PASSWORD_RESET
- See Also:
- Constant Field Values
-
TEMPLATE_MFA_OOB_CODE
- See Also:
- Constant Field Values
-
client
protected final okhttp3.OkHttpClient client -
baseUrl
protected final okhttp3.HttpUrl baseUrl -
apiToken
-
-
Method Details
-
get
Request the Email Templates. A token with scope read:email_templates is needed. See https://auth0.com/docs/api/management/v2#!/Email_Templates/get_email_templates_by_templateName- Parameters:
templateName
- the template name to request. You can use any of the constants defined inEmailTemplatesEntity
- Returns:
- a Request to execute.
-
create
Create an Email Template. A token with scope create:email_templates is needed. See https://auth0.com/docs/api/management/v2#!/Email_Templates/post_email_templates- Parameters:
template
- the template data to set- Returns:
- a Request to execute.
-
update
Patches the existing Email Template. A token with scope update:email_templates is needed. See https://auth0.com/docs/api/management/v2#!/Email_Templates/patch_email_templates_by_templateName- Parameters:
templateName
- the name of the template to update. You can use any of the constants defined inEmailTemplatesEntity
template
- the email template data to set.- Returns:
- a Request to execute.
-