Skip to main content
PUT
/
terraform
/
{terraformId}
/
variables
Replace all terraform variables
curl --request PUT \
  --url https://api.qovery.com/terraform/{terraformId}/variables \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "variables": [
    {
      "key": "<string>",
      "value": "<string>",
      "secret": true
    }
  ]
}'

Authorizations

Authorization
string
header
required

JWT tokens should be used with OIDC account (human to machine). JWT tokens used by the Qovery console to communicate with the API have a TTL. Curl Example ' curl https://console.qovery.com/organization -H "Authorization: Bearer $qovery_token" '

Path Parameters

terraformId
string<uuid>
required

Terraform ID

Body

application/json

Request to atomically replace all Terraform variables. Note: For secret variables, use value "SECRET_VALUE_UNCHANGED" to preserve the existing secret value.

variables
TerraformVarKeyValue · object[]
required

Complete list of variables to set (replaces all existing variables)

Response

Variables replaced successfully