Hi! I’m enjoying learning about auth0 and using it for our product. I’m trying to script CI around a page template, and I notice that a repeated PUT to /api/v2/branding/templates/universal-login will return a 409 after the first request.
The HTTP spec says PUT is intended to be idempotent, meaning replaying the same request should not have an effect. In this context, I think replacing the existing template every time would be the desired behavior, instead of an error.
As it is now, on any template changes, we have to first DELETE the current template in order to PUT successfully with the following request. If I were to script a DELETE before a PUT, it might introduce a bit of downtime to users in the small time between 2 requests, so this behavior is adding some complexity to all users of the API.