GET api/Department/{id}?type={type}

Gets a list of department.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

Organization Id.

integer

Required

type

List Type.

string

Required

Body Parameters

None.

Response Information

Resource Description

Collection of Department
NameDescriptionTypeAdditional information
UpdateType

string

None.

DepartmentId

integer

None.

DepartmentName

string

None.

UpdatedDate

date

None.

UpdatedBy

string

None.

UpdatedByName

string

None.

EmployeeCount

integer

None.

GlobalId

string

None.

OrganizationId

integer

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "UpdateType": "sample string 1",
    "DepartmentId": 2,
    "DepartmentName": "sample string 3",
    "UpdatedDate": "2025-04-17T06:46:40.643275+00:00",
    "UpdatedBy": "sample string 4",
    "UpdatedByName": "sample string 5",
    "EmployeeCount": 1,
    "GlobalId": "sample string 6",
    "OrganizationId": 1
  },
  {
    "UpdateType": "sample string 1",
    "DepartmentId": 2,
    "DepartmentName": "sample string 3",
    "UpdatedDate": "2025-04-17T06:46:40.643275+00:00",
    "UpdatedBy": "sample string 4",
    "UpdatedByName": "sample string 5",
    "EmployeeCount": 1,
    "GlobalId": "sample string 6",
    "OrganizationId": 1
  }
]

application/xml, text/xml

Sample:
<ArrayOfDepartment xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CustomersdbWebShared.Models">
  <Department>
    <DepartmentId>2</DepartmentId>
    <DepartmentName>sample string 3</DepartmentName>
    <EmployeeCount>1</EmployeeCount>
    <GlobalId>sample string 6</GlobalId>
    <OrganizationId>1</OrganizationId>
    <UpdateType>sample string 1</UpdateType>
    <UpdatedBy>sample string 4</UpdatedBy>
    <UpdatedByName>sample string 5</UpdatedByName>
    <UpdatedDate>2025-04-17T06:46:40.643275+00:00</UpdatedDate>
  </Department>
  <Department>
    <DepartmentId>2</DepartmentId>
    <DepartmentName>sample string 3</DepartmentName>
    <EmployeeCount>1</EmployeeCount>
    <GlobalId>sample string 6</GlobalId>
    <OrganizationId>1</OrganizationId>
    <UpdateType>sample string 1</UpdateType>
    <UpdatedBy>sample string 4</UpdatedBy>
    <UpdatedByName>sample string 5</UpdatedByName>
    <UpdatedDate>2025-04-17T06:46:40.643275+00:00</UpdatedDate>
  </Department>
</ArrayOfDepartment>