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

# Update environment

`PUT /environments/{id}`

Use when changing environment name or settings (e.g. renaming or updating metadata).

## Path parameters

- `id` string, required

## Request body

- DtoUpdateEnvironmentRequest
  - `name` string
  - `type` string

## Response `200`

OK

- DtoEnvironmentResponse
  - `created_at` string
  - `id` string
  - `name` string
  - `type` string
  - `updated_at` string

## Other responses

- `400` — Invalid request
- `404` — Resource not found
- `500` — Server error

---

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