# Create an Environment Value **POST /groups/{groupId}/apps/{appId}/environment_values** Define a new environment value. ## Servers - The root API resource and starting point for the App Services API.: https://services.cloud.mongodb.com/api/admin/v3.0 (The root API resource and starting point for the App Services API.) ## Authentication methods - Token auth ## Parameters ### Path parameters - **groupId** (string) An Atlas [Project/Group ID](https://docs.atlas.mongodb.com/tutorial/manage-projects/). - **appId** (string) The ObjectID of your application. [The App Services API Project and Application IDs section](#section/Project-and-Application-IDs) demonstrates how to find this value. ### Body: application/json (object) - **_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`. ## Responses ### 201 Created #### Body: application/json (object) - **_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. ### 409 Environment value name already exists #### Body: application/json (object) - **error** (string) A message that describes the error. - **error_code** (string) The error type. [Powered by Bump.sh](https://bump.sh)