---
title: "Update environment variable"
method: PUT
path: "/api/v1/projects/{projectRef}/envvars/{env}/{name}"
tags: ["envvars"]
---

# Update environment variable

`PUT /api/v1/projects/{projectRef}/envvars/{env}/{name}`

Update a specific environment variable for a specific project and environment.

## Request body

- EnvVarValue
  - `value` string, required

## Response `200`

Environment variable updated successfully

- SucceedResponse
  - `success` boolean, required

## Other responses

- `400` — Invalid request parameters or body
- `401` — Unauthorized request
- `404` — Resource not found

---

[API](https://skmtc.net/winsenlabs/apis/trigger-dev-v3-rest-api.md) · [All operations](https://skmtc.net/winsenlabs/apis/trigger-dev-v3-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/winsenlabs/trigger-dev-v3-rest-api/revisions/737c498e605b/schema)
