---
title: "CreateVirtualHost"
method: POST
path: "/v1/vhosts/"
tags: ["vhosts"]
---

# CreateVirtualHost

`POST /v1/vhosts/`

Create a new vhost.

## Request body

- DtoCreateVirtualHost
  - `hostname` string
  - `parentHostname` string
  - `type` string

## Response `201`

VirtualHostCreated

- object

## Changes

- **2024-12-04** `d7ced1b11534` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/goinfinite/apis/osapi/changes/v1/vhosts/post.md)

---

[API](https://skmtc.dev/goinfinite/apis/osapi.md) · [All operations](https://skmtc.dev/goinfinite/apis/osapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/goinfinite/osapi/revisions/29ef3eae8d99/schema)
