Skip to main content

Create Variable Set

Create a reusable set of environment variables.

Endpoint

POST /{envId}/variableSet

Request Body

FieldTypeRequiredDescription
namestringYesVariable set name
variablesobjectYesKey-value pairs of environment variables

Example

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

Response (201 Created)

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