Update Variable Set
Update a variable set's name or variables.
Endpoint
PUT /{envId}/variableSet/{id}
Path Parameters
| Parameter | Type | Description |
|---|---|---|
envId | string | Environment ID |
id | string | Variable set ID |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Variable set name |
variables | object | Yes | Key-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