---
title: "Update a Service Configuration"
method: PATCH
path: "/groups/{groupId}/apps/{appId}/services/{serviceId}/config"
tags: ["services"]
---

# Update a Service Configuration

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

Update a [Data Source](https://www.mongodb.com/docs/atlas/app-services/mongodb/) or
[Third-Party Service [Deprecated]](https://www.mongodb.com/docs/atlas/app-services/reference/services/)
configuration.

## Request body

- union
  - AtlasClusterServiceConfigInstance
    - `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.
    - `readPreference` 'primary' | 'primaryPreferred' | 'secondary' | 'secondaryPreferred' | 'nearest', required — The [read preference](https://www.mongodb.com/docs/atlas/app-services/mongodb/read-preference/) mode for read requests to the data source.
    - `readPreferenceTagSets` ReadPreferencesTagSet[] — Target read operations to specific members of a replica set.
    - `wireProtocolEnabled` boolean, required — If true, clients may [connect to the app over the MongoDB Wire Protocol](https://www.mongodb.com/docs/atlas/app-services/mongodb/wire-protocol/#connect-over-the-wire-protocol).
  - AtlasFederatedInstance
    - `_id` string
    - `name` 'mongodb-datafederation', required
    - `type` 'datalake', required
    - `config` object, required
      - `dataLakeName` string, required — The service name used to refer to the Federated database instance within this Atlas app. The name may be at most 64 characters long and must only contain ASCII letters, numbers, underscores, and hyphens.
  - ThirdPartyServiceConstructor
    - `name` string — The service name.
    - `type` 'aws' | 'twilio' | 'github' | 'gcm' | 'http' — The type of service.
    - `incoming_webhooks` IncomingWebhook[]
      - `name` string, required
      - `function_source` string, required
      - `respond_result` boolean, required
      - `options` object
        - `secret` string
        - `secretAsQueryParam` boolean
    - `version` integer

## Response `204`

Successfully updated.

---

[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)
