GET apis/Generic/GetSubDepartments?departmentId={departmentId}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| departmentId | string |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of Departments| Name | Description | Type | Additional information |
|---|---|---|---|
| departID | globally unique identifier |
None. |
|
| locID | globally unique identifier |
Required |
|
| locName | string |
None. |
|
| parentID | globally unique identifier |
None. |
|
| fullName | string |
Required String length: inclusive between 3 and 50 |
|
| active | boolean |
None. |
|
| createdBy | string |
None. |
|
| createdDate | date |
None. |
|
| modifiedBy | string |
None. |
|
| modifiedDate | date |
None. |
|
| rowID | integer |
None. |
|
| parentDepart | string |
None. |
|
| validationResult | EntityValidationResult |
None. |
|
| pageNumber | integer |
None. |
|
| pageSize | integer |
None. |
|
| PageCount | decimal number |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"departID": "b1a88b70-4971-434f-8855-140d39bec3d0",
"locID": "9af668c3-f811-4c66-af31-abfd429b504e",
"locName": "sample string 3",
"parentID": "db6ef913-3ae2-49e5-a1ee-d27fa05f7189",
"fullName": "sample string 5",
"active": true,
"createdBy": "sample string 7",
"createdDate": "2026-04-15T18:30:14.5463849+05:00",
"modifiedBy": "sample string 9",
"modifiedDate": "2026-04-15T18:30:14.5463849+05:00",
"rowID": 11,
"parentDepart": "sample string 12",
"validationResult": {
"Errors": [],
"HasError": false,
"ErrorSummary": ""
},
"pageNumber": 13,
"pageSize": 14,
"PageCount": 15.0
},
{
"departID": "b1a88b70-4971-434f-8855-140d39bec3d0",
"locID": "9af668c3-f811-4c66-af31-abfd429b504e",
"locName": "sample string 3",
"parentID": "db6ef913-3ae2-49e5-a1ee-d27fa05f7189",
"fullName": "sample string 5",
"active": true,
"createdBy": "sample string 7",
"createdDate": "2026-04-15T18:30:14.5463849+05:00",
"modifiedBy": "sample string 9",
"modifiedDate": "2026-04-15T18:30:14.5463849+05:00",
"rowID": 11,
"parentDepart": "sample string 12",
"validationResult": {
"Errors": [],
"HasError": false,
"ErrorSummary": ""
},
"pageNumber": 13,
"pageSize": 14,
"PageCount": 15.0
}
]