---
title: "Update an environment variable"
method: PATCH
path: "/v1/environment-variables/{environmentVariableId}"
tags: ["environments"]
---

# Update an environment variable

`PATCH /v1/environment-variables/{environmentVariableId}`

Update an environment variable by ID

## Path parameters

- `environmentVariableId` string, required — The ID of the environment variable

## Request body

- object
  - `key` string, required
  - `value` string
  - `isSecret` boolean

## Response `200`

The environment variable has been updated successfully

- object
  - `success` unknown, required

## Other responses

- `400` — 400
- `404` — 404

---

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