# Issue management api

**URL:** <https://community.auth0.com/t/issue-management-api/81205>\
**Category:** Get Help\
**Tags:** new-universal-login, api, management-api, auth0\
**Created:** [April 5, 2022, 10:35pm UTC](https://community.auth0.com/t/issue-management-api/81205 "2022-04-05T22:35:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dddan](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dddan/32/33259_2.png) [@dddan](https://community.auth0.com/u/dddan)\
**Post date:** [April 5, 2022, 10:35pm UTC](https://community.auth0.com/t/issue-management-api/81205/1 "2022-04-05T22:35:13Z")

</div>

Hey, have anyone has seem this error response message after a failed management api request

> {’  
> statusCode’: 400,  
> ‘error’: ‘Bad Request’,  
> ‘message’: ‘This features at least one custom domain to be configured for the tenant.’  
> }

after running python code below

```python
requests.put(url, headers=headers, data=payload)

```

I am wondering what causing this? I might miss some key stuff.

---

<div class="post-metadata">

**Author:** ![lihua.zhang](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lihua.zhang/32/39683_2.png) [@lihua.zhang](https://community.auth0.com/u/lihua.zhang)\
**Post date:** [April 6, 2022, 12:22am UTC](https://community.auth0.com/t/issue-management-api/81205/4 "2022-04-06T00:22:03Z")

</div>

Hi @dddan ,

Thank you for posting this topic on our Auth0 Community!

From this error message, it looks like your tenant uses New Universal Login, but has not set up the custom domain.

For New Universal Login to be able to set templates, it needs a Custom Domain to be set up and can be customized only via our Management API. [This](https://auth0.com/docs/customize/universal-login-pages/universal-login-page-templates) document explained the details.

Hope this helps!

---

<div class="post-metadata">

**Author:** ![dddan](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dddan/32/33259_2.png) [@dddan](https://community.auth0.com/u/dddan)\
**Post date:** [April 6, 2022, 8:22pm UTC](https://community.auth0.com/t/issue-management-api/81205/5 "2022-04-06T20:22:09Z")

</div>

You are right, I was missing the custom domain. And one more question, If I want to reset the template(Disacard any changes I’ve made), just use Delete api method? or another way will do it?

---

<div class="post-metadata">

**Author:** ![lihua.zhang](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lihua.zhang/32/39683_2.png) [@lihua.zhang](https://community.auth0.com/u/lihua.zhang)\
**Post date:** [April 11, 2022, 10:01pm UTC](https://community.auth0.com/t/issue-management-api/81205/6 "2022-04-11T22:01:47Z")

</div>

The Delete API method is the only way to delete the New Universal Login template.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [December 22, 2022, 10:51am UTC](https://community.auth0.com/t/issue-management-api/81205/7 "2022-12-22T10:51:33Z")

</div>


