POST api/SWPON_Leave/InsertUpdateLeave
Request Information
URI Parameters
None.
Body Parameters
SWPON_Leave| Name | Description | Type | Additional information |
|---|---|---|---|
| LeaveTransactionId | integer |
None. |
|
| LeaveId | integer |
None. |
|
| CompanyId | integer |
None. |
|
| EmployeeId | integer |
None. |
|
| LeaveCode | string |
None. |
|
| ApplyDate | string |
None. |
|
| LeaveFrom | string |
None. |
|
| LeaveTo | string |
None. |
|
| SupervisorStatus | string |
None. |
|
| SupervisorRemark | string |
None. |
|
| HrStatus | string |
None. |
|
| HrRemark | string |
None. |
|
| Reason | string |
None. |
|
| No_Of_Days | decimal number |
None. |
|
| EmployeeName | string |
None. |
|
| Id | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"LeaveTransactionId": 1,
"LeaveId": 2,
"CompanyId": 3,
"EmployeeId": 4,
"LeaveCode": "sample string 5",
"ApplyDate": "sample string 6",
"LeaveFrom": "sample string 7",
"LeaveTo": "sample string 8",
"SupervisorStatus": "sample string 9",
"SupervisorRemark": "sample string 10",
"HrStatus": "sample string 11",
"HrRemark": "sample string 12",
"Reason": "sample string 13",
"No_Of_Days": 14.0,
"EmployeeName": "sample string 15",
"Id": 16
}
application/xml, text/xml
Sample:
<SWPON_Leave xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DataLibrary"> <Id xmlns="http://schemas.datacontract.org/2004/07/CoreLibrary">16</Id> <ApplyDate>sample string 6</ApplyDate> <CompanyId>3</CompanyId> <EmployeeId>4</EmployeeId> <EmployeeName>sample string 15</EmployeeName> <HrRemark>sample string 12</HrRemark> <HrStatus>sample string 11</HrStatus> <LeaveCode>sample string 5</LeaveCode> <LeaveFrom>sample string 7</LeaveFrom> <LeaveId>2</LeaveId> <LeaveTo>sample string 8</LeaveTo> <LeaveTransactionId>1</LeaveTransactionId> <No_Of_Days>14</No_Of_Days> <Reason>sample string 13</Reason> <SupervisorRemark>sample string 10</SupervisorRemark> <SupervisorStatus>sample string 9</SupervisorStatus> </SWPON_Leave>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
booleanResponse Formats
application/json, text/json
Sample:
true
application/xml, text/xml
Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>