> For the complete documentation index, see [llms.txt](https://codemash.gitbook.io/codemash/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://codemash.gitbook.io/codemash/api-reference/database/integrations/save-database-integration.md).

# Save Database Integration

Saves database integration.

An **integration** connects an external provider to this module. Configure the provider and its secrets in Cloud; the API lets you list, create or update, enable, disable, set a default, and test integrations.

This endpoint creates the database integration and returns its id.

Saves the copy of the request's environment; each environment copy has its own connection string. An environment the project does not have is refused. For a managed Atlas Flex integration Norbix provisions the database `<env>_<integrationId>` in the project's Flex cluster.

{% openapi src="/files/0gOkqzp7kyziG9XPpCBy" path="/{version}/database/integrations" method="post" %}
[norbix-hub-swagger.json](https://712692422-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHy372bqsaex2cqS3ikhL%2Fuploads%2Fgit-blob-7c7445e68689b62620e59cb01a3523deb46b865b%2Fnorbix-hub-swagger.json?alt=media)
{% endopenapi %}

## In Cloud

Manage this visually in Cloud — see [Database](/codemash/cloud/database.md).

## Use it from code

Every Norbix SDK exposes this endpoint as a method — see [Save Database Integration](/codemash/sdks/database/integrations/save-database-integration.md) in the SDK reference, with examples in every language.
