POST api/OrgUnits
Create a new orgunit
Request Information
URI Parameters
None.
Body Parameters
OrgUnit| Name | Description | Type | Additional information |
|---|---|---|---|
| City | string |
None. |
|
| CountryCode | string |
None. |
|
| Nr | string |
None. |
|
| ParentId | integer |
None. |
|
| NestingLevel | integer |
None. |
|
| CompanyId | integer |
None. |
|
| Name | string |
None. |
|
| LastModified | date |
None. |
|
| Created | date |
None. |
|
| Id | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"City": "sample string 1",
"CountryCode": "sample string 2",
"Nr": "sample string 3",
"ParentId": 4,
"NestingLevel": 5,
"CompanyId": 6,
"Name": "sample string 7",
"LastModified": "2025-12-08T14:26:38.5534829+00:00",
"Created": "2025-12-08T14:26:38.5534829+00:00",
"Id": 10
}
application/xml, text/xml
Sample:
<OrgUnit xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ControlKeeper.ApiModel"> <Id>10</Id> <Created>2025-12-08T14:26:38.5534829+00:00</Created> <LastModified>2025-12-08T14:26:38.5534829+00:00</LastModified> <Name>sample string 7</Name> <CompanyId>6</CompanyId> <City>sample string 1</City> <CountryCode>sample string 2</CountryCode> <NestingLevel>5</NestingLevel> <Nr>sample string 3</Nr> <ParentId>4</ParentId> </OrgUnit>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
integerResponse Formats
application/json, text/json
Sample:
1
application/xml, text/xml
Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>
