GET api/OrgUnits

Fetch a list of all orgunits

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

ListResultOfOrgUnit
NameDescriptionTypeAdditional information
TotalCount

integer

None.

Items

Collection of OrgUnit

None.

Response Formats

application/json, text/json

Sample:
{
  "TotalCount": 1,
  "Items": [
    {
      "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:22:05.0929926+00:00",
      "Created": "2025-12-08T14:22:05.0929926+00:00",
      "Id": 10
    },
    {
      "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:22:05.0929926+00:00",
      "Created": "2025-12-08T14:22:05.0929926+00:00",
      "Id": 10
    }
  ]
}

application/xml, text/xml

Sample:
<ListResultOfOrgUnitHWVxl9UY xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ControlKeeper.ApiModel">
  <Items>
    <OrgUnit>
      <Id>10</Id>
      <Created>2025-12-08T14:22:05.0929926+00:00</Created>
      <LastModified>2025-12-08T14:22:05.0929926+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>
    <OrgUnit>
      <Id>10</Id>
      <Created>2025-12-08T14:22:05.0929926+00:00</Created>
      <LastModified>2025-12-08T14:22:05.0929926+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>
  </Items>
  <TotalCount>1</TotalCount>
</ListResultOfOrgUnitHWVxl9UY>