---
title: "Update Environments"
method: POST
path: "/console/v1/environments"
tags: ["Environments"]
---

# Update Environments

`POST /console/v1/environments`

## Request body

- EnvironmentsUpdateContractDto
  - `environments` object[], required
    - `name` string, required — The name of the environment.
    - `id` string — A unique identifier for the environment. If not provided, the associated environment will be treated as a newly created environment.
    - `isProduction` boolean, required — Whether the environment is production.
    - `requiresReview` boolean, required — Whether the environment requires review.
    - `requiredReviewGroupID` string — The ID of the review group that the environment requires review from.
    - `requiresReleasePipeline` boolean, required — Whether the environment requires a release pipeline.

## Response `200`

Update Environments Response

- object
  - `message` string, required — A simple string explaining the result of the operation.
  - `data` object, required — A single result.
    - `environments` object[], required
      - `name` string, required — The name of the environment.
      - `id` string, required — A unique identifier for the environment.
      - `isProduction` boolean, required — Whether the environment is production.
      - `requiresReview` boolean, required — Whether the environment requires review.
      - `requiredReviewGroupID` string — The ID of the review group that the environment requires review from.
      - `requiresReleasePipeline` boolean, required — Whether the environment requires a release pipeline.

## Other responses

- `400` — Invalid request. Please check the request input and try again.
- `401` — This endpoint only accepts an active CONSOLE key, but an invalid key was sent. Key: console-xxxXXXxxxXXXxxx

---

[API](https://skmtc.net/statsig/apis/console-api.md) · [All operations](https://skmtc.net/statsig/apis/console-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/statsig/console-api/revisions/3189f450c93b/schema)
