---
title: "Build a server"
method: POST
path: "/servers/{serverId}/build"
---

# Build a server

`POST /servers/{serverId}/build`

## Path parameters

- `serverId` integer, required

## Request body

- object
  - `operatingSystemId` integer, required — A valid operating system template ID.
  - `name` string — Server name.
  - `hostname` string — Server Hostname.
  - `sshKeys` integer[] — An array of SSH keys.
  - `vnc` boolean — Enable/disable.
  - `ipv6` boolean — Enable/disable.
  - `email` boolean — Enable/disable.
  - `swap` number — Values of 256, 512, 768, 1, 1.5, 2, 3, 4, 5,6 8

## Response `200`

- object

## Other responses

- `401`

---

[API](https://skmtc.dev/virtfusion/apis/virtfusion-global-api.md) · [All operations](https://skmtc.dev/virtfusion/apis/virtfusion-global-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/virtfusion/virtfusion-global-api/revisions/e5fbafe8acde/schema)
