---
title: "Update Env"
method: PATCH
path: "/applications/{uuid}/envs"
tags: ["Applications"]
---

# Update Env

`PATCH /applications/{uuid}/envs`

Update env by application UUID.

## Path parameters

- `uuid` string, required

## Request body

- object
  - `key` string, required — The key of the environment variable.
  - `value` string, required — The value of the environment variable.
  - `is_preview` boolean — The flag to indicate if the environment variable is used in preview deployments.
  - `is_literal` boolean — The flag to indicate if the environment variable is a literal, nothing espaced.
  - `is_multiline` boolean — The flag to indicate if the environment variable is multiline.
  - `is_shown_once` boolean — The flag to indicate if the environment variable's value is shown on the UI.

## Response `201`

Environment variable updated.

- EnvironmentVariable — Environment Variable model
  - `id` integer
  - `uuid` string
  - `resourceable_type` string
  - `resourceable_id` integer
  - `is_literal` boolean
  - `is_multiline` boolean
  - `is_preview` boolean
  - `is_runtime` boolean
  - `is_buildtime` boolean
  - `is_shared` boolean
  - `is_shown_once` boolean
  - `key` string
  - `value` string
  - `real_value` string
  - `comment` string, nullable
  - `version` string
  - `created_at` string
  - `updated_at` string

## Other responses

- `400` — Invalid token.
- `401` — Unauthenticated.
- `404` — Resource not found.

---

[API](https://skmtc.net/coollabsio/apis/coolify.md) · [All operations](https://skmtc.net/coollabsio/apis/coolify/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/coollabsio/coolify/versions/08be5dc8e729/schema)
