Skip to main content
PATCH
/
v1
/
environments
/
{environmentId}
/
variables
/
{id}
Update Environment Variable
curl --request PATCH \
  --url https://api.tryreplicas.com/v1/environments/{environmentId}/variables/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "key": "<string>",
  "value": "<string>"
}
'
{
  "environment_variable": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "organization_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "environment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "key": "<string>",
    "value": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.replicas.dev/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

API key authentication. Obtain your API key from the Replicas dashboard under Settings > API Keys.

Path Parameters

environmentId
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

Response

Variable updated

environment_variable
object
required

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