---
title: "Create a new site"
method: POST
path: "/sites"
---

# Create a new site

`POST /sites`

## Request body

- object
  - `site_path` string, required
  - `name` string, required

## Response `201`

Site created

- Site
  - `id` integer
  - `name` string
  - `site_path` string

## Other responses

- `400` — Site already exists or validation error

---

[API](https://skmtc.dev/collectednotes/apis/site-management-api.md) · [All operations](https://skmtc.dev/collectednotes/apis/site-management-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/collectednotes/site-management-api/revisions/90e948db0114/schema)
