---
title: "POST /api/services/app/Tenant/CreateTenant"
method: POST
path: "/api/services/app/Tenant/CreateTenant"
tags: ["Tenant"]
---

# POST /api/services/app/Tenant/CreateTenant

`POST /api/services/app/Tenant/CreateTenant`

## Request body

- CreateTenantInput
  - `tenancyName` string, required — Required; Length 0–64; Regex pattern applied
  - `name` string, required — Required; Length 0–128
  - `adminEmailAddress` string, email, required — Required; Length 0–256; Format: email
  - `adminName` string, nullable — Length 0–64
  - `adminSurname` string, nullable — Length 0–64
  - `adminPassword` string, nullable — Length 0–128
  - `connectionString` string, nullable — Max length 1024
  - `shouldChangePasswordOnNextLogin` boolean
  - `sendActivationEmail` boolean
  - `editionId` integer, nullable
  - `isActive` boolean
  - `subscriptionEndDateUtc` string, date-time, nullable
  - `isInTrialPeriod` boolean

## Response `200`

Success

---

[API](https://skmtc.dev/dalieu/apis/portaldalieu-api.md) · [All operations](https://skmtc.dev/dalieu/apis/portaldalieu-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/dalieu/portaldalieu-api/revisions/78dcf1621c0e/schema)
