Hi, I am trying to automate an Auth0 workflow that allows us to update email templates via the Auth0 Management API.
There appears to be an issue specifically with the change_password template. The other templates I’m able to access but not this one. I noticed that in the documentation it’s flagged as “legacy”. Is that why I can’t access it?
I’m using the node.js 2.42.0 API to just do this as a test…
I understand that you have encountered issues when trying to update the change_password email template using the Management API.
After testing this myself, I found the same observations as you. The change_password and password_reset email templates are tagged as legacy and are meant only for legacy tenants.
In this case, I believe the correct email template you are looking for is labeled reset_email. I can confirm that this email template produces the Change Password email template found in the Auth0 Dashboard.
I hope this helps!
Please let me know if there’s anything else I can do to help.
But one more question/confusion as I’m not sure if the email_reset will suit my needs … my overall goal right now is to invite new users to a private beta where I have signups disabled.
I was following this Auth0 guide on how to do that. In that guide, it explicitly recommends to use and modify the Change Password template. I’m able to edit the Change Password template, the supposed legacy template, in the Auth0 dashboard and it works perfectly. So if this is a legacy template, why can I edit in the dashboard but not via API?
Please allow me to clarify that legacy tenants are tenants that were created before a certain date. I cannot confirm the exact date, but if your tenant is relatively new, it is likely not a legacy tenant.
I have the option of inspecting tenant flags as well, and if you prefer, you could send me a direct message of your tenant name for me to verify.
Yes, that is the correct documentation for repurposing a Change Password email template to invite your users to your application. And there are two options to update the “Change Password” email template, namely through the: