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, or the literal string global.

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
personal_override_allowed
boolean

Team/Global variables only. Allows source-backed personal environments to override this inherited key.

Response

Variable updated

environment_variable
object
required

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