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

# Update app environment

`PUT /apps/{name}/environments/{environment}`

Update the configuration of an app in a specific environment, such as which version is deployed.

## Path parameters

- `name` string, required — The name of the app.
- `environment` string, required — The name of the environment.

## Request body

- UpdateAppEnvironmentParams
  - `$schema` string, uri — A URL to the JSON Schema for this object.
  - `version` string, required — The version to deploy to this environment, e.g. 'v1', 'v2'.

## Response `200`

OK

- UpdateAppEnvironmentResponse
  - `$schema` string, uri — A URL to the JSON Schema for this object.
  - `environment` string, required
  - `version` string, required

## Other responses

- `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)
