---
title: "Changes to PUT /v2/vals/{val_id}/environment_variables/{key}"
method: PUT
path: "/v2/vals/{val_id}/environment_variables/{key}"
---

# Changes to PUT /v2/vals/{val_id}/environment_variables/{key}

`PUT /v2/vals/{val_id}/environment_variables/{key}`

> Every recorded change to this endpoint, newest first.

## Timeline

Changed in 3 of 46 revisions.

- **2026-08-05** `4d8b6d2e6db3` — 1 breaking, 1 warning, 2 info
- **2026-03-11** `dc1b3c9e3b2a` — 1 breaking
- **2025-10-30** `f039435c5e18` — 1 info

## Changes

- **2026-08-05** `4d8b6d2e6db3` — 1 breaking, 1 warning, 2 info
  - added the pattern `^[A-Za-z_][A-Z0-9a-z_]*$` to the `path` request parameter `key`
  - for the `path` request parameter `key`, the maxLength was set to `8192`
  - api operation id `valEnvironmentVariablesCreate` removed and replaced with `valEnvironmentVariablesUpdate`
  - request property `description` list-of-types was widened by adding types `null` to media type `application/json`
- **2026-03-11** `dc1b3c9e3b2a` — 1 breaking
  - response property `updatedAt` list-of-types was widened by adding types `null` to media type `application/json` of response `201`
- **2025-10-30** `f039435c5e18` — 1 info
  - endpoint added

---

[Operation](https://skmtc.dev/val-town/apis/val-town-api/docs/v2/vals/:val_id/environment_variables/:key/put.md) · [API](https://skmtc.dev/val-town/apis/val-town-api.md) · [Page](https://skmtc.dev/val-town/apis/val-town-api/changes/v2/vals/:val_id/environment_variables/:key/put)
