I’ve been getting a 404 Not Found error code while trying to retrieve an email template.
The template in question is the change_password/password_reset (not sure of the difference between the two) and has already been customized and saved on the Dashboard.
In fact, I can confirm that modifying any other template yields a 200 Ok code, so this seems to be limited to that email template type.
I have been customizing it and using it specifically for inviting users on my application.
For more information regarding the environments which i ran the tests in, it was both the .NET SDK as well as the Management API Explorer with the token generated by the Management API Test Application, which has all the necessary scopes in the Access Token by default, further confirmed by the fact that any other template which is not one of those two works.
I reproduced the same behavior you mentioned, where I could not retrieve the change_password email template. The error also states that “The template does not exist.”.
However, after I created that email template on the Management API Create an email template endpoint, I can get it without problems.
Could you give this a try and let me know how this goes for you?
I can confirm that by doing it programmatically it now works. I guess the dashboard doesn’t call the same API behind the scenes?
I think this would also mean that if I were to need a change in one of those templates in the future I’d have to do it via APIs as well?
Guess that maybe a scheduled fix in the future would definitely help, unless those templates, given they are already considered “legacy”, are going to be deprecated.
If that were the scenario, which template should i be using for when a password change/reset is prompted by the user? Or, in my scenario, sent from the backend to support Application invitations?
I have double-checked the available email templates and found that the change_password and password_reset templates are for legacy scenarios.
In the dashboard, the email template named Change Password (link) corresponds to the reset_email email template.
I verified and confirmed that the changes I made on the dashboard are consistent with the Management API. This means that you have the option of updating your email template either with the Dashboard or the Management API, and the changes will be synced.