# Pasword Reset Toggle via an API Call

**URL:** <https://community.auth0.com/t/pasword-reset-toggle-via-an-api-call/106812>\
**Category:** Get Help\
**Tags:** branding-mangement-api, management-api\
**Created:** [May 12, 2023, 11:39am UTC](https://community.auth0.com/t/pasword-reset-toggle-via-an-api-call/106812 "2023-05-12T11:39:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrafaquat](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@mrafaquat](https://community.auth0.com/u/mrafaquat)\
**Post date:** [May 12, 2023, 11:39am UTC](https://community.auth0.com/t/pasword-reset-toggle-via-an-api-call/106812/1 "2023-05-12T11:39:37Z")

</div>

is it possible to reset the toggle in the Branding → Universal Login → advanced → Password Rest via an API call

---

<div class="post-metadata">

**Author:** ![sylvainf](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sylvainf/32/35478_2.png) [@sylvainf](https://community.auth0.com/u/sylvainf)\
**Post date:** [May 12, 2023, 11:51am UTC](https://community.auth0.com/t/pasword-reset-toggle-via-an-api-call/106812/2 "2023-05-12T11:51:15Z")

</div>

Hi @mrafaquat

Yes it is as documented [here](https://auth0.com/docs/api/management/v2#!/Tenants/patch_settings). It’s not under the branding API: you need a PATCH call to /api/v2/tenants/settings, with a payload containing a ‘change\_password’ object, and this object itself containing an object with an ‘enabled’ key - set it to False if you want to toggle off the option.

Example in Python:

```auto
import requests

payload = {
	'change_password': {'enabled': False}
}

r = requests.patch(url + '/api/v2/tenants/settings', headers=headers, json=payload).json()

```

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [May 26, 2023, 11:52am UTC](https://community.auth0.com/t/pasword-reset-toggle-via-an-api-call/106812/3 "2023-05-26T11:52:09Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
