POST api/General/AddDepartment
Request Information
URI Parameters
None.
Body Parameters
Department| Name | Description | Type | Additional information |
|---|---|---|---|
| DeptID | integer |
None. |
|
| OrgID | integer |
None. |
|
| DeptNameEn | string |
None. |
|
| DeptNameAr | string |
None. |
|
| Description | string |
None. |
|
| Tel | string |
None. |
|
| Fax | string |
None. |
|
| string |
None. |
||
| DeptCode | string |
None. |
|
| Active | boolean |
None. |
|
| DateCreated | date |
None. |
|
| DateModified | date |
None. |
|
| LocationID | string |
None. |
|
| AppID | string |
None. |
|
| UserID | integer |
None. |
|
| createStatus | boolean |
None. |
|
| updateStatus | boolean |
None. |
|
| IsSyncWithBMS | boolean |
None. |
|
| DepartmentLeadId | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"DeptID": 1,
"OrgID": 1,
"DeptNameEn": "sample string 2",
"DeptNameAr": "sample string 3",
"Description": "sample string 4",
"Tel": "sample string 5",
"Fax": "sample string 6",
"Email": "sample string 7",
"DeptCode": "sample string 8",
"Active": true,
"DateCreated": "2025-11-06T13:23:51.3332377+04:00",
"DateModified": "2025-11-06T13:23:51.3332377+04:00",
"LocationID": "sample string 9",
"AppID": "sample string 10",
"UserID": 1,
"createStatus": true,
"updateStatus": true,
"IsSyncWithBMS": true,
"DepartmentLeadId": 1
}
application/xml, text/xml
Sample:
<Department xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TaskManagementServices.Models"> <Active>true</Active> <AppID>sample string 10</AppID> <DateCreated>2025-11-06T13:23:51.3332377+04:00</DateCreated> <DateModified>2025-11-06T13:23:51.3332377+04:00</DateModified> <DepartmentLeadId>1</DepartmentLeadId> <DeptCode>sample string 8</DeptCode> <DeptID>1</DeptID> <DeptNameAr>sample string 3</DeptNameAr> <DeptNameEn>sample string 2</DeptNameEn> <Description>sample string 4</Description> <Email>sample string 7</Email> <Fax>sample string 6</Fax> <IsSyncWithBMS>true</IsSyncWithBMS> <LocationID>sample string 9</LocationID> <OrgID>1</OrgID> <Tel>sample string 5</Tel> <UserID>1</UserID> <createStatus>true</createStatus> <updateStatus>true</updateStatus> </Department>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |