---
title: "update vhost"
method: PATCH
path: "/vhosts/{id}"
tags: ["Vhosts"]
---

# update vhost

`PATCH /vhosts/{id}`

## Request

- Base URL: `https://api.aptible.com`
- URL: `https://api.aptible.com/vhosts/{id}`
- Auth: API key in header `Authorization`

Partially updates a vhost's attributes.

## Path parameters

- `id` integer, required

## Query parameters

- `no_embed` boolean

## Headers

- `Prefer` 'no_sensitive_extras=true'

## Request body

- UpdateVhostRequest
  - `user_domain` string
  - `certificate` integer
  - `platform` string
  - `container_port` integer
  - `container_ports` integer[]
  - `ip_whitelist` string[]
  - `shared_fingerprint` string
  - `shared` boolean
  - `load_balancing_algorithm_type` string

## Response `200`

successful

## Other responses

- `default`: Error response. Often a 4xx or 5xx status code

## Changes

- **2026-07-24** `1dc1e5b8c6eb`: 2 info
  - added the new optional `header` request parameter `Prefer`
  - added the new optional `query` request parameter `no_embed`
- **2025-07-15** `e8d113b83937`: 1 info
  - added the new optional request property `load_balancing_algorithm_type`
- **2025-05-28** `5762db6dcf07`: 2 info
  - added the new optional request property `shared`
  - added the new optional request property `shared_fingerprint`

[Operation history](https://skmtc.dev/aptible/apis/aptible-api-v1/changes/vhosts/:id/patch.md)

---

[API](https://skmtc.dev/aptible/apis/aptible-api-v1.md) - [All operations](https://skmtc.dev/aptible/apis/aptible-api-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/aptible/apis/aptible-api-v1/revisions/a21f6b1bc6fe?raw)
