POST api/registration/InsEmployee
Request Information
URI Parameters
None.
Body Parameters
Employees| Name | Description | Type | Additional information |
|---|---|---|---|
| CompanyID | string |
Required |
|
| EmployeeID | string |
Required |
|
| EnrollID | integer |
Required |
|
| Initials | string |
Required |
|
| LastName | string |
Required |
|
| Address | string |
Required |
|
| NIC | string |
Required |
|
| Gender | string |
Required |
|
| DateofJoined | date |
Required |
Request Formats
application/json, text/json
Sample:
{
"CompanyID": "sample string 1",
"EmployeeID": "sample string 2",
"EnrollID": 3,
"Initials": "sample string 4",
"LastName": "sample string 5",
"Address": "sample string 6",
"NIC": "sample string 7",
"Gender": "sample string 8",
"DateofJoined": "2025-12-06T17:48:28.635759+05:30"
}
application/xml, text/xml
Sample:
<Employees xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EasyHR.API.Models"> <Address>sample string 6</Address> <CompanyID>sample string 1</CompanyID> <DateofJoined>2025-12-06T17:48:28.635759+05:30</DateofJoined> <EmployeeID>sample string 2</EmployeeID> <EnrollID>3</EnrollID> <Gender>sample string 8</Gender> <Initials>sample string 4</Initials> <LastName>sample string 5</LastName> <NIC>sample string 7</NIC> </Employees>
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. |