---
title: "Update an environment"
method: PATCH
path: "/v3/environments/{id}"
tags: ["Environments"]
---

# Update an environment

`PATCH /v3/environments/{id}`

Updates the specified environment by setting the values of the parameters passed. Any parameters not provided will be left unchanged.

## Path parameters

- `id` string, uuid, required

## Request body

- EnvironmentUpdateRequestModel
  - `name` string, nullable — Name of the environment. Letters (a-z, A-Z), numbers, underscores, hyphens, dots and spaces. Cannot start or end with a space.
  - `description` string, nullable — Description of the environment. Any printable characters and line breaks. Cannot contain control characters other than tab, carriage return and line feed, nor invisible formatting characters (zero-width and bidirectional marks), and cannot start or end with whitespace.

## Response `200`

OK

- EnvironmentDto
  - `id` string, required
  - `name` string, required
  - `description` string, nullable
  - `type` 'production' | 'sandbox', required
  - `createdAt` string, date-time, required
  - `updatedAt` string, date-time, required

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `429` — Too Many Requests
- `500` — Server Error

---

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