---
title: "Create Pg Instance"
method: POST
path: "/admin/pg-instances"
---

# Create Pg Instance

`POST /admin/pg-instances`

## Request

- Base URL: `https://api.xhostd.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.xhostd.com/admin/pg-instances`
- Auth: none declared

Create a bounded instance on a host (admin). Answers the ``Command``.

## Headers

- `authorization` string, nullable

## Request body

- CreateInstanceRequest
  - `host_id` string, uuid, required
  - `profile` string, required
  - `owner_user_id` string, uuid, nullable
  - `request_id` string, uuid, nullable
  - `force` boolean

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/xhostd/apis/xhostd-public.md) · [All operations](https://skmtc.dev/xhostd/apis/xhostd-public/llms.txt) · [OpenAPI document](https://skmtc.dev/xhostd/apis/xhostd-public/revisions/bf439c4d1789?raw)
