---
title: "Create a tenant"
method: POST
path: "/api/v1/tenants"
tags: ["tenant"]
---

# Create a tenant

`POST /api/v1/tenants`

This can only be done by a logged in user who has the required privileges.

## Request body

- TenantMutable
  - `name` string, required — name of tenant organization
  - `status` 'ACTIVE' | 'PENDING' | 'DISABLED'
  - `confirmed` boolean — true, if the confirmation link/email has been triggered

## Response `200`

Success

- object
  - `id` string

## Changes

- **2021-09-17** `1134b4a506a5` — 3 breaking, 4 info
  - removed the enum value `active` of the request property `status`
  - removed the enum value `disabled` of the request property `status`
  - removed the enum value `pending` of the request property `status`
  - added the new `ACTIVE` enum value to the request property `status`
  - …3 more
- **2019-08-15** `42619b8ccbbe` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/openintegrationhub/apis/iam-api-for-oih/changes/api/v1/tenants/post.md)

---

[API](https://skmtc.dev/openintegrationhub/apis/iam-api-for-oih.md) · [All operations](https://skmtc.dev/openintegrationhub/apis/iam-api-for-oih/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/openintegrationhub/iam-api-for-oih/revisions/016871a170fd/schema)
