Skip to main content
PATCH
Update environment variable

Authorizations

Authorization
string
header
required

Organization or personal API key from Settings → API Keys.

Headers

X-Replicas-Api-Version
enum<string>

API version. 2026-10-07 returns snake_case responses. See versioning.

Available options:
2026-10-07

Path Parameters

environment_id
string
required

Environment UUID.

id
string<uuid>
required

Variable UUID

Body

application/json

Request body for updating an environment variable. Only provided fields are changed.

key
string
value
string
locked
boolean

Blocks environments that inherit this variable from overriding it. Defaults to false. Admin only on team environments.

Response

Variable updated

environment_variable
object
required

An environment variable. Values are encrypted at rest and decrypted on read.