POST api/Payroll/InsertEmployeeLeave?isOpen={isOpen}&userId={userId}&officeId={officeId}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| isOpen | boolean |
Required |
|
| userId | integer |
Required |
|
| officeId | integer |
Default value is 0 |
Body Parameters
EmployeeLeaveModel| Name | Description | Type | Additional information |
|---|---|---|---|
| LeaveID | integer |
None. |
|
| EmployeeID | integer |
None. |
|
| EntryDate | date |
None. |
|
| LeavFrom | date |
None. |
|
| LeaveTo | date |
None. |
|
| Remarks | string |
None. |
|
| UserID | integer |
None. |
|
| Unpaid | boolean |
None. |
|
| CampusID | integer |
None. |
|
| LeaveTypeID | integer |
None. |
|
| LeavesAllowed | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"LeaveID": 1,
"EmployeeID": 2,
"EntryDate": "2025-12-16T08:21:17.2460223+05:00",
"LeavFrom": "2025-12-16T08:21:17.2460223+05:00",
"LeaveTo": "2025-12-16T08:21:17.2460223+05:00",
"Remarks": "sample string 6",
"UserID": 7,
"Unpaid": true,
"CampusID": 9,
"LeaveTypeID": 10,
"LeavesAllowed": 11
}
application/xml, text/xml
Sample:
<EmployeeLeaveModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ultrabiz_ERP_API.Models.Payroll"> <CampusID>9</CampusID> <EmployeeID>2</EmployeeID> <EntryDate>2025-12-16T08:21:17.2460223+05:00</EntryDate> <LeavFrom>2025-12-16T08:21:17.2460223+05:00</LeavFrom> <LeaveID>1</LeaveID> <LeaveTo>2025-12-16T08:21:17.2460223+05:00</LeaveTo> <LeaveTypeID>10</LeaveTypeID> <LeavesAllowed>11</LeavesAllowed> <Remarks>sample string 6</Remarks> <Unpaid>true</Unpaid> <UserID>7</UserID> </EmployeeLeaveModel>
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. |