---
title: Set device enforcement
canonical: https://openvpn.net/cloud-docs/developer/cloudconnexa-api-v1-2-3/settings/set-device-enforcement/
product: CloudConnexa Docs
---

# Set device enforcement

`PUT /api/v1/settings/user/device-enforcement`

## Body parameter

```csharp
OFF
```

## Parameters

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

### Enumerated Values

| Parameter | Value |
| --- | --- |
| body | OFF |
| body | LEARN\_AND\_ENFORCE |
| body | ENFORCE |

## Responses

| Status | Meaning | Description | Schema |
| --- | --- | --- | --- |
| default | Default | default response | string |

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

---

Prev: [Get device enforcement](https://openvpn.net/cloud-docs/developer/cloudconnexa-api-v1-2-3/settings/get-device-enforcement.md)
Next: [Get default max devices per user](https://openvpn.net/cloud-docs/developer/cloudconnexa-api-v1-2-3/settings/get-default-max-devices-per-user.md)
Index: https://openvpn.net/cloud-docs/llms.txt
