v4

latestOpenAPI 3.0.0MIT2026-07-311494532.1 MB
Environment Variables

Update a variable

Updates an existing environment variable. Providing values merges them into the existing per-environment values by _environmentId; envs not present in the request keep their stored value. Submitting the masked secret placeholder (the value returned by read endpoints for secret variables) as a real value is rejected.

patch/v1/environment-variables/{variableKey}

Path parameters

variableKeystring required

The unique key of the environment variable (e.g. BASE_URL)

Headers

idempotency-keystring

A header for idempotency purposes

Request body

keystring

Unique key for the variable. Must start with a letter and contain only letters, digits, and underscores.

type'string'

The type of the variable

isSecretboolean

Response

OK

_idstring required
_organizationIdstring required
keystring required
type'string' required
isSecretboolean required
createdAtstring required
updatedAtstring required