---
title: "Define a Value in an application"
method: POST
path: "/groups/{groupId}/apps/{appId}/values"
tags: ["values"]
---

# Define a Value in an application

`POST /groups/{groupId}/apps/{appId}/values`

Define a [Value](https://www.mongodb.com/docs/atlas/app-services/values-and-secrets) in
an application.

## Request body

- NewValue
  - `name` string, required
  - `private` boolean, required
  - `value` unknown, required

## Response `201`

The [value](https://www.mongodb.com/docs/atlas/app-services/values-and-secrets) was
successfully defined.

- NewValue
  - `name` string, required
  - `private` boolean, required
  - `value` unknown, required

---

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