update_variable_in_variable_set
Modify specific attributes of an existing variable within a variable set in Terraform Cloud. Update name, value, description, category, HCL status, or sensitivity without altering unspecified attributes.
Instructions
Update an existing variable in a variable set.
Modifies the configuration of an existing variable within a variable set. Only specified attributes will be updated; unspecified attributes remain unchanged.
API endpoint: PATCH /varsets/{varset_id}/relationships/vars/{var_id}
Args: varset_id: The ID of the variable set (format: "varset-xxxxxxxx") var_id: The ID of the variable (format: "var-xxxxxxxx")
Returns: The updated variable with all current settings and configuration
See: docs/tools/variables.md#update-variable-in-variable-set for reference documentation
Input Schema
Name | Required | Description | Default |
---|---|---|---|
params | No | ||
var_id | Yes | ||
varset_id | Yes |