> ## Documentation Index
> Fetch the complete documentation index at: https://vastai-80aa3a82-auto-cli-sdk-preview-pr-398.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# VastAI.update_env_var

Update an existing user environment variable.

## Signature

```python theme={null}
VastAI.update_env_var(
    name: str,
    value: str
) -> dict
```

## Parameters

<ParamField path="name" type="str" required>
  Environment variable name to update
</ParamField>

<ParamField path="value" type="str" required>
  New environment variable value
</ParamField>

## Returns

`dict`

## Example

```python theme={null}
from vastai import VastAI

client = VastAI(api_key="YOUR_API_KEY")
result = client.update_env_var(name="value", value="value")
print(result)
```
