POST api/create/employee
Request Information
URI Parameters
None.
Body Parameters
CreateEmployee| Name | Description | Type | Additional information |
|---|---|---|---|
| EmpNo | integer |
None. |
|
| EmpName | string |
None. |
|
| JobTitleId | integer |
None. |
|
| OTLimit | decimal number |
None. |
|
| SiteId | integer |
None. |
|
| EmpJoining | date |
None. |
|
| EmpArea | string |
None. |
|
| EmpDept | string |
None. |
|
| DeptId | integer |
None. |
|
| EmpBPay | decimal number |
None. |
|
| EmpHRate | decimal number |
None. |
|
| string |
None. |
||
| SponsorDetail | string |
None. |
|
| QatarId | integer |
None. |
|
| Nationality | string |
None. |
|
| HouseAllow | decimal number |
None. |
|
| TranspAllow | decimal number |
None. |
|
| TeleAllow | decimal number |
None. |
|
| FoodAllow | decimal number |
None. |
|
| OtherAllow | decimal number |
None. |
|
| CertFlag | boolean |
None. |
|
| TrainFlag | boolean |
None. |
|
| DriveFlag | boolean |
None. |
|
| AnnualLeave | integer |
None. |
|
| MedicalLeave | integer |
None. |
|
| MaternityLeave | integer |
None. |
|
| LocalLeave | integer |
None. |
|
| PersonalReasons | integer |
None. |
|
| CarryForwardLeave | integer |
None. |
|
| CreatedBy | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"EmpNo": 1,
"EmpName": "sample string 2",
"JobTitleId": 3,
"OTLimit": 4.0,
"SiteId": 5,
"EmpJoining": "2025-12-05T21:08:41.1400148-08:00",
"EmpArea": "sample string 7",
"EmpDept": "sample string 8",
"DeptId": 9,
"EmpBPay": 10.1,
"EmpHRate": 11.1,
"Email": "sample string 12",
"SponsorDetail": "sample string 13",
"QatarId": 14,
"Nationality": "sample string 15",
"HouseAllow": 16.1,
"TranspAllow": 17.1,
"TeleAllow": 18.1,
"FoodAllow": 19.1,
"OtherAllow": 20.1,
"CertFlag": true,
"TrainFlag": true,
"DriveFlag": true,
"AnnualLeave": 24,
"MedicalLeave": 25,
"MaternityLeave": 26,
"LocalLeave": 27,
"PersonalReasons": 28,
"CarryForwardLeave": 29,
"CreatedBy": 30
}
application/xml, text/xml
Sample:
<CreateEmployee xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/working_sample_mvc_api.Models"> <AnnualLeave>24</AnnualLeave> <CarryForwardLeave>29</CarryForwardLeave> <CertFlag>true</CertFlag> <CreatedBy>30</CreatedBy> <DeptId>9</DeptId> <DriveFlag>true</DriveFlag> <Email>sample string 12</Email> <EmpArea>sample string 7</EmpArea> <EmpBPay>10.1</EmpBPay> <EmpDept>sample string 8</EmpDept> <EmpHRate>11.1</EmpHRate> <EmpJoining>2025-12-05T21:08:41.1400148-08:00</EmpJoining> <EmpName>sample string 2</EmpName> <EmpNo>1</EmpNo> <FoodAllow>19.1</FoodAllow> <HouseAllow>16.1</HouseAllow> <JobTitleId>3</JobTitleId> <LocalLeave>27</LocalLeave> <MaternityLeave>26</MaternityLeave> <MedicalLeave>25</MedicalLeave> <Nationality>sample string 15</Nationality> <OTLimit>4</OTLimit> <OtherAllow>20.1</OtherAllow> <PersonalReasons>28</PersonalReasons> <QatarId>14</QatarId> <SiteId>5</SiteId> <SponsorDetail>sample string 13</SponsorDetail> <TeleAllow>18.1</TeleAllow> <TrainFlag>true</TrainFlag> <TranspAllow>17.1</TranspAllow> </CreateEmployee>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.