---
title: "Link multiple data sources"
method: POST
path: "/groups/{groupId}/apps/{appId}/multi_data_sources"
tags: ["services"]
---

# Link multiple data sources

`POST /groups/{groupId}/apps/{appId}/multi_data_sources`

Call this endpoint to link multiple data sources to an App. The total 
limit of linked data sources per App is 100. Data Sources linked by this
endpoint will have `ReadAndWrite` default rules.

## Path parameters

- `groupId` string, required
- `appId` string, required

## Request body

- LinkingDataSourceConstructor[] — Limit of 25 linked data sources in the payload.
  - `name` string — Create a name to identify each cluster you want to link.
  - `type` 'mongodb-atlas' | 'datalake' — The type of the data source you want to link.
  - `config` LinkingDataSourceConfig
    - `clusterName` string, required — The cluster name of the data source within. The name may be at most 64 characters long and must only contain ASCII letters, numbers, underscores, and hyphens.

## Response `201`

No content

## Other responses

- `400` — - Data Sources exceeds the limit of 25 in the payload - Data Sources exceed the limit of 100 on the App - Multiple Default Rules for a single Data Source - Type of Data Source is neither "mongodb-atlas" nor "datalake" - Linking failed for at least one Data Source

---

[API](https://skmtc.net/mongodb/apis/mongodb-atlas-app-services-admin-api.md) · [All operations](https://skmtc.net/mongodb/apis/mongodb-atlas-app-services-admin-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mongodb/mongodb-atlas-app-services-admin-api/versions/1365ab72bc03/schema)
