---
title: "Changes to Create or update an environment variable (requires metadata or admin role)"
method: PUT
path: "/api/environment/{key}"
---

# Changes to Create or update an environment variable (requires metadata or admin role)

`PUT /api/environment/{key}`

> Every recorded change to this operation, newest first.

## Timeline

Changed in 1 of 6 revisions.

- **2026-10-10** `a142cbe9d486`: 1 breaking, 1 warning

## Changes

- **2026-10-10** `a142cbe9d486`: 1 breaking, 1 warning
  - for the `path` request parameter `key`, the minLength was increased from `0` to `1`
  - the request's body maxLength was set to `65535`

---

[Operation](https://skmtc.dev/orkescloud/apis/orkes-conductor-api-server/docs/api/environment/:key/put.md) - [API](https://skmtc.dev/orkescloud/apis/orkes-conductor-api-server.md) - [Page](https://skmtc.dev/orkescloud/apis/orkes-conductor-api-server/changes/api/environment/:key/put)
