---
title: Set 2FA enabled
canonical: https://openvpn.net/cloud-docs/developer/cloudconnexa-api-v1-2-0/settings/set-2fa-enabled/
product: CloudConnexa Docs
---

# Set 2FA enabled

`PUT /api/v1/settings/auth/two-factor-auth`

## Body parameter

```json
true
```

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| body | body | boolean | true | none |

## Responses

| Status | Meaning | Description | Schema |
| --- | --- | --- | --- |
| 200 | [OK](https://tools.ietf.org/html/rfc7231#section-6.3.1) | OK | boolean |

To perform this operation, you must be authenticated by means of one of the following methods: oauth

---

Prev: [Get 2FA enabled](https://openvpn.net/cloud-docs/developer/cloudconnexa-api-v1-2-0/settings/get-2fa-enabled.md)
Next: [Get trusted devices allowed](https://openvpn.net/cloud-docs/developer/cloudconnexa-api-v1-2-0/settings/get-trusted-devices-allowed.md)
Index: https://openvpn.net/cloud-docs/llms.txt
