Environment variables

Update environment variable

Updates only the fields you send.

patch/v1/environments/{environment_id}/variables/{id}

Request

  • Base URL
    https://api.replicas.dev
  • URL
    https://api.replicas.dev/v1/environments/{environment_id}/variables/{id}
  • Auth
    HTTP bearer

Path parameters

environment_idstring required

Environment UUID.

idstring uuid required

Variable UUID

Headers

X-Replicas-Api-Version'2026-10-07'

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

Request body

keystring
valuestring
lockedboolean

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

Response

Variable updated

Changes

No recorded changes to this operation across all 1 revision of this API.