update_workspace_variable
Modify an existing workspace variable in Terraform Cloud by updating its name, value, description, category, HCL status, or sensitivity. Only specified attributes are changed; unspecified attributes remain unaltered.
Instructions
Update an existing workspace variable.
Modifies the configuration of an existing workspace variable. Only specified attributes will be updated; unspecified attributes remain unchanged.
API endpoint: PATCH /workspaces/{workspace_id}/vars/{variable_id}
Args: workspace_id: The ID of the workspace (format: "ws-xxxxxxxx") variable_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-workspace-variable for reference documentation
Input Schema
Name | Required | Description | Default |
---|---|---|---|
params | No | ||
variable_id | Yes | ||
workspace_id | Yes |