Create a data source or third-party service
Create a data source or third-party service [Deprecated].
Path parameters
-
An Atlas Project/Group ID.
-
The ObjectID of your application. The App Services API Project and Application IDs section demonstrates how to find this value.
POST
/groups/{groupId}/apps/{appId}/services
curl \
--request POST 'https://services.cloud.mongodb.com/api/admin/v3.0/groups/{groupId}/apps/{appId}/services' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"name":"string","type":"string"}'
Request examples
Serviceconstructor
{
"name": "string",
"type": "string"
}
{
"_id": "string",
"name": "mongodb-datafederation",
"type": "datalake",
"config": {
"dataLakeName": "string"
}
}
{
"name": "string",
"type": "aws",
"incoming_webhooks": [
{
"name": "string",
"function_source": "string",
"respond_result": true,
"options": {
"secret": "string",
"secretAsQueryParam": true
}
}
],
"version": 42
}
Response examples (201)
Serviceconstructor
{
"_id": "string",
"name": "string",
"type": "string"
}
{
"_id": "string",
"name": "mongodb-datafederation",
"type": "datalake",
"config": {
"dataLakeName": "string"
}
}
{
"_id": "string",
"name": "string",
"type": "aws",
"version": 42
}