> ## 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.tfa_update

Update a 2FA method's settings.

## Signature

```python theme={null}
VastAI.tfa_update(
    label: Optional[str] = None,
    set_primary: Optional[str] = None
) -> dict
```

## Parameters

<ParamField path="label" type="Optional[str]">
  New label/name for this 2FA method
</ParamField>

<ParamField path="set_primary" type="Optional[str]">
  Set this method as the primary/default 2FA method
</ParamField>

## Returns

`dict`

## Example

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

client = VastAI(api_key="YOUR_API_KEY")
result = client.tfa_update()
print(result)
```
