Update a Service Configuration

PATCH /groups/{groupId}/apps/{appId}/services/{serviceId}/config

Update a Data Source or Third-Party Service [Deprecated] configuration.

Path parameters

application/json

Body object

One of:

Responses

  • 204

    Successfully updated.

PATCH /groups/{groupId}/apps/{appId}/services/{serviceId}/config
curl \
 --request PATCH 'https://services.cloud.mongodb.com/api/admin/v3.0/groups/{groupId}/apps/{appId}/services/{serviceId}/config' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"clusterName":"Cluster0","readPreference":"primary","readPreferenceTagSets":["server1"],"wireProtocolEnabled":true}'
{
  "clusterName": "Cluster0",
  "readPreference": "primary",
  "readPreferenceTagSets": [
    "server1"
  ],
  "wireProtocolEnabled": true
}
{
  "_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
}