update_workspace_variable
Update workspace variables in Terraform Cloud by specifying the workspace ID, variable ID, and parameters like key, value, description, category, HCL, or sensitivity. Modify only the specified attributes while leaving others unchanged.
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 |