---
title: "Update an environment"
method: PUT
path: "/v1/environments/{environmentId}"
tags: ["Environments"]
---

# Update an environment

`PUT /v1/environments/{environmentId}`

Update an environment by its unique identifier **environmentId**. 
    You can modify the environment name, identifier, color, and other configuration settings.

## Path parameters

- `environmentId` string, required

## Headers

- `idempotency-key` string

## Request body

- UpdateEnvironmentRequestDto
  - `name` string
  - `identifier` string
  - `parentId` string
  - `color` string
  - `dns` InBoundParseDomainDto
    - `inboundParseDomain` string
  - `bridge` BridgeConfigurationDto
    - `url` string

## Response `200`

OK

- EnvironmentResponseDto
  - `_id` string, required — Unique identifier of the environment
  - `name` string, required — Name of the environment
  - `_organizationId` string, required — Organization ID associated with the environment
  - `identifier` string, required — Unique identifier for the environment
  - `type` 'dev' | 'prod', nullable — Type of the environment
  - `apiKeys` ApiKeyDto[] — List of API keys associated with the environment
    - `key` string, required — API key
    - `_userId` string, required — User ID associated with the API key
    - `hash` string — Hashed representation of the API key
  - `_parentId` string — Parent environment ID
  - `slug` string — URL-friendly slug for the environment

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `405` — Method Not Allowed
- `409` — Conflict
- `413` — Payload Too Large
- `414` — URI Too Long
- `415` — Unsupported Media Type
- `422` — Unprocessable Entity
- `429` — The client has sent too many requests in a given amount of time.
- `500` — Internal Server Error
- `503` — The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, which will likely be alleviated after some delay.

---

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