# Toggle "Use my own database" via management API?

**URL:** <https://community.auth0.com/t/toggle-use-my-own-database-via-management-api/62741>\
**Category:** Get Help\
**Created:** [May 13, 2021, 2:00pm UTC](https://community.auth0.com/t/toggle-use-my-own-database-via-management-api/62741 "2021-05-13T14:00:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![viren](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/viren/32/29235_2.png) [@viren](https://community.auth0.com/u/viren)\
**Post date:** [May 13, 2021, 2:00pm UTC](https://community.auth0.com/t/toggle-use-my-own-database-via-management-api/62741/1 "2021-05-13T14:00:00Z")

</div>

Hi folks,  
I can create a connection via the mgmt api and upload custom scripts. However, I can’t find docs on how to toggle the “Use my own database” toggle on the ‘custom Database’ page to ON  
Any pointers?  
Thanks

---

<div class="post-metadata">

**Author:** ![ricardo.batista](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ricardo.batista/32/7711_2.png) [@ricardo.batista](https://community.auth0.com/u/ricardo.batista)\
**Post date:** [May 13, 2021, 3:32pm UTC](https://community.auth0.com/t/toggle-use-my-own-database-via-management-api/62741/2 "2021-05-13T15:32:09Z")

</div>

Hi @viren

You can enable and disable the “User my own database” toggle by setting the enabledDatabaseCustomization using the [PATCH /api/v2/connections/{id}](https://auth0.com/docs/api/management/v2#!/Connections/patch_connections_by_id) endpoint with something like:

```
{
  "options": {
    "enabledDatabaseCustomization": true
  }
}

```

---

<div class="post-metadata">

**Author:** ![viren](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/viren/32/29235_2.png) [@viren](https://community.auth0.com/u/viren)\
**Post date:** [May 13, 2021, 5:06pm UTC](https://community.auth0.com/t/toggle-use-my-own-database-via-management-api/62741/3 "2021-05-13T17:06:21Z")

</div>

Thanks @ricardo.batista. Going to try that

---

<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:** [May 14, 2021, 7:37am UTC](https://community.auth0.com/t/toggle-use-my-own-database-via-management-api/62741/4 "2021-05-14T07:37:50Z")

</div>

Let us know if you have any further questions!

---

<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:** [May 27, 2021, 11:32am UTC](https://community.auth0.com/t/toggle-use-my-own-database-via-management-api/62741/5 "2021-05-27T11:32:43Z")

</div>


