---
title: Update an existing host
canonical: https://openvpn.net/cloud-docs/developer/cloudconnexa-api-v1-0/host/update-an-existing-host/
product: CloudConnexa Docs
---

# Update an existing host

`PUT /api/v1/hosts/{id}`

**Update an existing host by id.**

## Body parameter

```json
{
  "name": "string",
  "description": "string",
  "internetAccess": "SPLIT_TUNNEL_ON",
  "domain": "string",
  "gatewaysIds": [
    "00000000-0000-0000-0000-000000000000"
  ]
}
```

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| id | path | string | true | none |
| body | body | [HostUpdateRequest](https://openvpn.net/cloud-docs/developer/cloudconnexa-api-v1-0/schemas/hostupdaterequest.md) | true | none |
| » name | body | string | false | none |
| » description | body | string | false | none |
| » internetAccess | body | string | false | none |
| » domain | body | string | false | none |
| » gatewaysIds | body | \[string\] | false | none |

### Enumerated Values

| Parameter | Value |
| --- | --- |
| » internetAccess | SPLIT\_TUNNEL\_ON |
| » internetAccess | SPLIT\_TUNNEL\_OFF |
| » internetAccess | RESTRICTED\_INTERNET |

## Responses

| Status | Meaning | Description | Schema |
| --- | --- | --- | --- |
| 200 | [OK](https://tools.ietf.org/html/rfc7231#section-6.3.1) | OK | [HostResponse](https://openvpn.net/cloud-docs/developer/cloudconnexa-api-v1-0/schemas/hostresponse.md) |

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

---

Prev: [Get existing host](https://openvpn.net/cloud-docs/developer/cloudconnexa-api-v1-0/host/get-existing-host.md)
Next: [Delete an existing host](https://openvpn.net/cloud-docs/developer/cloudconnexa-api-v1-0/host/delete-an-existing-host.md)
Index: https://openvpn.net/cloud-docs/llms.txt
