# Workflow\.update\_variables

### Workflow.<mark style="color:purple;">update\_variables</mark>(*variables*) → void

Batch update variable metadata attributes for variables across tables in a workflow. Note that this will only modify variables in tables directly in the workflow – any dataset or workflow tables imported into the workflow will be unmodified.

### **Parameters:**

**`variables` :&#x20;*****list\<dict>***\
A list of variables to update. Each variable is represented by a dict, with a mandatory `"name"` property, corresponding to the variable's name, and any metadata properties to update. To clear a metadata property, set it to `None`, otherwise omit it to leave a given property unchanged.

### **Returns:**&#x20;

**void**

### Examples:

```python
import redivis
workflow = redivis.workflow("my.workflow")

workflow.update_variables([
    {
        # All attrs other than "name" are optional.
        # To remove a value, set it to None
        "name": "var_name",
        "label": "my_label",
        "description": "my_description",
        "valueLabels": [
            { "value": "1", "label": "Yes"},
            { "value": "2", "label": "No" },
            ...
        ]
    }
    ...
])
```
