---
title: "POST /api/services/app/OrganizationUnit/CreateOrganizationUnit"
method: POST
path: "/api/services/app/OrganizationUnit/CreateOrganizationUnit"
tags: ["OrganizationUnit"]
---

# POST /api/services/app/OrganizationUnit/CreateOrganizationUnit

`POST /api/services/app/OrganizationUnit/CreateOrganizationUnit`

## Request body

- CreateOrganizationUnitInput
  - `parentId` integer, nullable
  - `displayName` string, required — Required; Length 0–128

## Response `200`

Success

- OrganizationUnitDto
  - `id` integer
  - `creationTime` string, date-time
  - `creatorUserId` integer, nullable
  - `lastModificationTime` string, date-time, nullable
  - `lastModifierUserId` integer, nullable
  - `parentId` integer, nullable
  - `code` string, nullable
  - `displayName` string, nullable
  - `memberCount` integer
  - `roleCount` integer

---

[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)
