---
title: "Create a site"
method: POST
path: "/{org_slug}/sites"
tags: ["Sites"]
---

# Create a site

`POST /{org_slug}/sites`

## Request

- Base URL: `https://api.obelinf.com`
- URL: `https://api.obelinf.com/{org_slug}/sites`
- Auth: HTTP bearer

Create a site

## Path parameters

- `org_slug` string, required

## Request body

- object
  - `name` string, required
  - `slug` string, required
  - `status` 'active' | 'decommissioned' | 'inactive' | 'planned', required
  - `contact_email` string
  - `contact_name` string
  - `contact_phone` string
  - `description` string
  - `facility` string
  - `latitude` number
  - `longitude` number
  - `physical_address` string
  - `shipping_address` string
  - `site_group_id` string
  - `time_zone` string

## Response `201`

Site created

- object
  - `site` object, required
    - `created_at` string, required
    - `id` string, required
    - `name` string, required
    - `slug` string, required
    - `status` string, required
    - `updated_at` string, required
    - `contact_email` string, nullable
    - `contact_name` string, nullable
    - `contact_phone` string, nullable
    - `description` string, nullable
    - `facility` string, nullable
    - `latitude` string, nullable
    - `longitude` string, nullable
    - `physical_address` string, nullable
    - `shipping_address` string, nullable
    - `site_group_id` string, nullable
    - `site_group_name` string, nullable
    - `time_zone` string, nullable

## Other responses

- `400`: Validation error
- `404`: Site group not found
- `409`: Slug conflict

---

[API](https://skmtc.dev/obelinf/apis/obelinf-api.md) · [All operations](https://skmtc.dev/obelinf/apis/obelinf-api/llms.txt) · [OpenAPI document](https://skmtc.dev/obelinf/apis/obelinf-api/revisions/463fcf791828?raw)
