---
title: "Update State of One Custom DNS Configuration for Atlas Clusters on AWS"
method: PATCH
path: "/api/atlas/v2/groups/{groupId}/awsCustomDNS"
tags: ["AWS Clusters DNS"]
---

# Update State of One Custom DNS Configuration for Atlas Clusters on AWS

`PATCH /api/atlas/v2/groups/{groupId}/awsCustomDNS`

Enables or disables the custom DNS configuration for AWS clusters in the specified project. Enable custom DNS if you use AWS VPC peering and use your own DNS servers.

## Path parameters

- `groupId` string, required

## Query parameters

- `envelope` boolean
- `pretty` boolean

## Response `200`

OK

## Other responses

- `401` — Unauthorized.
- `403` — Forbidden.
- `404` — Not Found.
- `429` — Too Many Requests.
- `500` — Internal Server Error.

---

[API](https://skmtc.dev/mongodb/apis/atlas-admin-api.md) · [All operations](https://skmtc.dev/mongodb/apis/atlas-admin-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/mongodb/atlas-admin-api/revisions/e37e8ef8429f/schema)
