cURL
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>" }
Update an environment variable by its key
Authentication via JWT token or API key. JWT: Get from Veryfront dashboard. API Key: Format "vf__" - create via /api-keys endpoint.
Project ID or slug
Environment variable name
Environment ID containing the variable
1
Environment variable updated