---
title: "Create a Facility"
method: POST
path: "/app/v1/facilities"
tags: ["facilities"]
---

# Create a Facility

`POST /app/v1/facilities`

## Request body

- FacilityInput
  - `custom_attributes` CustomAttributes
  - `latitude` number, nullable — latitude on the Earth
  - `longitude` number, nullable — longitude on the Earth
  - `name` string
  - `status` string — Use `id` value of any index in `GET /v1/facility_statuses`
  - `type` string — Use `id` value of any index in `GET /v1/facility_types`

## Response `200`

successful operation

- Facility
  - `created_at` string, date-time
  - `updated_at` string, date-time
  - `created_by` string, uuid
  - `updated_by` string, uuid
  - `custom_attributes` CustomAttributes
  - `latitude` number, nullable — latitude on the Earth
  - `longitude` number, nullable — longitude on the Earth
  - `name` string
  - `status` string — Use `id` value of any index in `GET /v1/facility_statuses`
  - `type` string — Use `id` value of any index in `GET /v1/facility_types`
  - `id` string, uuid

---

[API](https://skmtc.net/validere/apis/carbonhub-api.md) · [All operations](https://skmtc.net/validere/apis/carbonhub-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/validere/carbonhub-api/revisions/053edab62415/schema)
