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

# Modify an Environment Value

`PUT /groups/{groupId}/apps/{appId}/environment_values/{environmentValueId}`

Modify an existing 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 `200`

Success

- 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

- `404` — Environment value not found

---

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