Skip to main content

Update Variable Set

Update a variable set's name or variables.

Endpoint

PUT /{envId}/variableSet/{id}

Path Parameters

ParameterTypeDescription
envIdstringEnvironment ID
idstringVariable set ID

Request Body

FieldTypeRequiredDescription
namestringYesVariable set name
variablesobjectYesKey-value pairs (replaces all existing variables)

Example

curl -X PUT "https://api.thevenin.cloud/api/v1/{envId}/variableSet/{id}" \
-H "Authorization: Bearer $API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "database-config",
"variables": {
"DATABASE_HOST": "postgres-updated.example.com",
"DATABASE_PORT": "5432"
}
}'

Response (200 OK)

{
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "database-config",
"envIdRef": "{envId}",
"variables": {
"DATABASE_HOST": "postgres-updated.example.com",
"DATABASE_PORT": "5432"
},
"version": "v2"
}

Notes

  • PUT replaces all variables; include all variables you want to keep