---
title: "Create an Environment Value"
method: POST
path: "/groups/{groupId}/apps/{appId}/environment_values"
tags: ["environments"]
---

# Create an Environment Value

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

Define a new environment value.

## Request body

- EnvironmentValue
  - `_id` string — The environment value's internal ID
  - `name` string — The environment value name
  - `last_modified` number — The time this configuration was last modified represented by the number of seconds since the UNIX epoch.
  - `values` object — An object that maps environment names to values. The environment value resolves to the current active environment's mapped value. If no value is mapped to the current active environment, the environment value resolves to `undefined`.
    - `none` unknown
    - `development` unknown
    - `testing` unknown
    - `qa` unknown
    - `production` unknown

## Response `201`

Created

- EnvironmentValueDescription
  - `_id` string — The environment value's internal ID
  - `name` string — The environment value name
  - `last_modified` number — The time this configuration was last modified represented by the number of seconds since the UNIX epoch.

## Other responses

- `409` — Environment value name already exists

---

[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/revisions/1365ab72bc03/schema)
