Skip to main content
PATCH
/
projects
/
{project_reference}
/
env-vars
/
{key}
Update Environment Variable
curl --request PATCH \
  --url https://api.veryfront.com/projects/{project_reference}/env-vars/{key} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "value": "postgresql://localhost:5432/newdb"
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "key": "<string>",
  "value": "<string>"
}

Authorizations

Authorization
string
header
required

Authentication via JWT token or API key. JWT: Get from Veryfront dashboard. API Key: Format "vf__" - create via /api-keys endpoint.

Path Parameters

project_reference
string
required

Project ID or slug

key
string
required

Environment variable name

Query Parameters

environment_id
string<uuid>
required

Environment ID containing the variable

Body

application/json
key
string
Minimum string length: 1
value
string

Response

Environment variable updated

id
string<uuid>
required
key
string
required
value
string
required