POST api/EarnLeaveProcess/Save
Request Information
URI Parameters
None.
Body Parameters
EarnLeaveProcessSaveVM| Name | Description | Type | Additional information |
|---|---|---|---|
| Employee | EmployeeLookup |
Required |
|
| LeaveType | PayrollLeaveTypeLookupVM |
Required |
|
| LastProcessDate | string |
None. |
|
| FromDate | string |
Required |
|
| ToDate | string |
Required |
|
| TotalElDays | decimal number |
None. |
|
| TotalMlTaken | decimal number |
None. |
|
| TotalElTaken | decimal number |
None. |
|
| LeaveDivider | integer |
None. |
|
| ElRemainDays | integer |
None. |
|
| Status | string |
Required Matching regular expression pattern: A|I |
|
| CancelRemarks | string |
String length: inclusive between 0 and 100 |
|
| ConfirmStatus | string |
Required Matching regular expression pattern: Y|N |
|
| CreateUser | integer |
Required |
|
| CreateIp | string |
Required String length: inclusive between 0 and 20 |
|
| CalenderYear | integer |
Required |
Request Formats
application/json, text/json
Sample:
{
"Employee": {
"EmployeeId": 1,
"EmployeeName": "sample string 2",
"Prefix": "sample string 3",
"PresentHouseName": "sample string 4",
"PresentAddress": "sample string 5",
"EmployeeStatus": "sample string 6"
},
"LeaveType": {
"LeaveTypeId": 1,
"LeaveTypeName": "sample string 2"
},
"LastProcessDate": "sample string 1",
"FromDate": "sample string 2",
"ToDate": "sample string 3",
"TotalElDays": 4.0,
"TotalMlTaken": 5.0,
"TotalElTaken": 6.0,
"LeaveDivider": 7,
"ElRemainDays": 8,
"Status": "sample string 9",
"CancelRemarks": "sample string 10",
"ConfirmStatus": "sample string 11",
"CreateUser": 12,
"CreateIp": "sample string 13",
"CalenderYear": 14
}
application/xml, text/xml
Sample:
<EarnLeaveProcessSaveVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models">
<CalenderYear>14</CalenderYear>
<CancelRemarks>sample string 10</CancelRemarks>
<ConfirmStatus>sample string 11</ConfirmStatus>
<CreateIp>sample string 13</CreateIp>
<CreateUser>12</CreateUser>
<ElRemainDays>8</ElRemainDays>
<Employee>
<EmployeeId>1</EmployeeId>
<EmployeeName>sample string 2</EmployeeName>
<EmployeeStatus>sample string 6</EmployeeStatus>
<Prefix>sample string 3</Prefix>
<PresentAddress>sample string 5</PresentAddress>
<PresentHouseName>sample string 4</PresentHouseName>
</Employee>
<FromDate>sample string 2</FromDate>
<LastProcessDate>sample string 1</LastProcessDate>
<LeaveDivider>7</LeaveDivider>
<LeaveType>
<LeaveTypeId>1</LeaveTypeId>
<LeaveTypeName>sample string 2</LeaveTypeName>
</LeaveType>
<Status>sample string 9</Status>
<ToDate>sample string 3</ToDate>
<TotalElDays>4</TotalElDays>
<TotalElTaken>6</TotalElTaken>
<TotalMlTaken>5</TotalMlTaken>
</EarnLeaveProcessSaveVM>
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.