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

# Update an environment

`POST /environments/{id}`

Updates an environment with the given environment ID. You can update the name, description, and limit settings.

## Path parameters

- `id` string, required

## Headers

- `X-API-Version` string, required

## Request body

- UpdateEnvironmentDtoV1
  - `name` string — Name for the environment
  - `description` string — Description for the environment
  - `limit_mode` 'none' | 'restrict' | 'notify' — Limit mode for the environment
  - `limit_value` number — Limit value for the environment (required when limitMode is not set to "none")

## Response `200`

Updated environment object.

- EnvironmentApiResponseDtoV1
  - `data` EnvironmentResponseDtoV1, required
    - `id` string, required — Auto-generated ID for an environment
    - `name` string, required — Environment name
    - `description` string — Environment description
    - `limit_mode` 'none' | 'restrict' | 'notify' — Environment limit mode
    - `limit_value` number — Environment limit value
    - `is_restricted` boolean, required — Whether the environment is restricted
    - `restricted_at` string — Date when environment was restricted
    - `created_at` string, required — Date when environment was created
    - `updated_at` string, required — Date when environment was last updated

## Other responses

- `400` — Error: Environment can't be updated due to validation errors.
- `401` — Error: Invalid API key.
- `404` — Error: Environment with the given ID was not found.
- `429` — Error: API key has exceeded its rate limit.

---

[API](https://skmtc.dev/fingerprint/apis/management-api.md) · [All operations](https://skmtc.dev/fingerprint/apis/management-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/fingerprint/management-api/revisions/b17eccec9d47/schema)
