---
title: "Update environment"
method: PUT
path: "/environments/{name}"
---

# Update environment

`PUT /environments/{name}`

Rename your environment

## Path parameters

- `name` string, required — The current name of the environment to update.

## Request body

- UpdateEnvironmentParams
  - `$schema` string, uri — A URL to the JSON Schema for this object.
  - `new_name` string, required — The desired new name of the environment

## Response `200`

OK

- UpdateEnvironmentResponse
  - `$schema` string, uri — A URL to the JSON Schema for this object.
  - `environment` Environment, required
    - `is_deletable` boolean, required — If this environment is able to be deleted.
    - `name` string, required — The human readable name for the environment

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `409` — Conflict
- `422` — Unprocessable Entity
- `500` — Internal Server Error
- `default` — Error

---

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