---
title: "Create org unit"
method: POST
path: "/orgunits/"
tags: ["Billing"]
---

# Create org unit

`POST /orgunits/`

## Headers

- `x-simple-workspace` string, required
- `x-piriod-test-mode` boolean

## Request body

- OrgunitWrite
  - `customer` string, required
  - `name` string, required

## Response `201`

Org unit created.

- Orgunit
  - `id` integer
  - `customer` string, required — Customer ID this org unit belongs to.
  - `name` string, required
  - `created` string, date-time
  - `updated` string, date-time

## Other responses

- `400` — Reached the 12 org units per customer limit.

---

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