Toggle "Use my own database" via management API?

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

Hi @viren

You can enable and disable the “User my own database” toggle by setting the enabledDatabaseCustomization using the PATCH /api/v2/connections/{id} endpoint with something like:

{
  "options": {
    "enabledDatabaseCustomization": true
  }
}
1 Like

Thanks @ricardo.batista. Going to try that

1 Like

Let us know if you have any further questions!