Create a data source or third-party service

POST /groups/{groupId}/apps/{appId}/services

Path parameters

application/json

Body object

One of:

Responses

  • 201 application/json

    Successfully created.

    One of:
  • 409

    There is already a service with the given name.

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"}'
{
  "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
}
{
  "_id": "string",
  "name": "string",
  "type": "string"
}
{
  "_id": "string",
  "name": "mongodb-datafederation",
  "type": "datalake",
  "config": {
    "dataLakeName": "string"
  }
}
{
  "_id": "string",
  "name": "string",
  "type": "aws",
  "version": 42
}