---
title: "Modify a Secret"
method: PUT
path: "/groups/{groupId}/apps/{appId}/secrets/{secretId}"
tags: ["secrets"]
---

# Modify a Secret

`PUT /groups/{groupId}/apps/{appId}/secrets/{secretId}`

Modify a
[Secret](https://www.mongodb.com/docs/atlas/app-services/values-and-secrets/define-and-manage-secrets)
associated with a Atlas App Services App.

## Request body

- object
  - `_id` string
  - `name` string, required
  - `value` string, required

## Response `204`

No body returned for response

---

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