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

# CreateVirtualHost

`POST /v1/vhost/`

Create a new vhost.

## Request body

- DtoCreateVirtualHost
  - `hostname` string
  - `isWildcard` boolean
  - `parentHostname` string
  - `type` 'top-level' | 'subdomain' | 'alias' | 'wildcard' | 'primary'

## Response `201`

VirtualHostCreated

- object

---

[API](https://skmtc.net/goinfinite/apis/osapi.md) · [All operations](https://skmtc.net/goinfinite/apis/osapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/goinfinite/osapi/versions/7320a5d8ef9e/schema)
