POST api/departmentTypes/addDepartment/{orgKey}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| orgKey | integer |
Required |
Body Parameters
DepartmentTypes| Name | Description | Type | Additional information |
|---|---|---|---|
| DepartmentTypeKey | integer |
None. |
|
| DepartmentTypeName | string |
None. |
|
| DepartmentTypeCode | string |
None. |
|
| DepartmentTypeDescription | string |
None. |
|
| StatusKey | byte |
None. |
|
| EmployeeDepartmentCount | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"departmentTypeKey": 1,
"departmentTypeName": "sample string 2",
"departmentTypeCode": "sample string 3",
"departmentTypeDescription": "sample string 4",
"statusKey": 64,
"employeeDepartmentCount": 6
}
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
PageViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| StatusCode | integer |
None. |
|
| StatusMessage | string |
None. |
|
| TotalCount | integer |
None. |
|
| ModelObject | Object |
None. |
|
| CurrentDateTime | date |
None. |
Response Formats
application/json, text/json
Sample:
{
"statusCode": 1,
"statusMessage": "sample string 2",
"totalCount": 3,
"modelObject": {},
"currentDateTime": "2026-01-29T20:38:45.1612191+00:00"
}