PUT api/LeaveEncash/Update

Request Information

URI Parameters

None.

Body Parameters

LeaveEncashUpdateVM
NameDescriptionTypeAdditional information
LencashId

integer

Required

LencashDate

string

Required

Refno

string

Required

String length: inclusive between 0 and 15

Employee

EmployeeLookup

Required

LeaveType

PayrollLeaveTypeLookupVM

Required

ApplyDate

string

Required

TotlErnLeaveInCr

decimal number

None.

TotalSickLeaveAvailed

decimal number

None.

TotalElAvailed

decimal number

None.

EncashLeaveCount

decimal number

None.

BalanceEarnLeave

decimal number

None.

BasicSal

decimal number

None.

Da

decimal number

None.

SpecialAllowance

decimal number

None.

OtherAllowance

decimal number

None.

TotalAmount

decimal number

None.

Status

string

Required

Matching regular expression pattern: A|C

CancelRemarks

string

String length: inclusive between 0 and 100

ConfirmStatus

string

Required

Matching regular expression pattern: Y|N

UpdateUser

integer

Required

UpdateIp

string

Required

String length: inclusive between 0 and 20

FinYear

integer

None.

CalenderYear

integer

Required

PaymentType

string

Required

Matching regular expression pattern: B|C

ElRemainDays

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "LencashId": 1,
  "LencashDate": "sample string 2",
  "Refno": "sample string 3",
  "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"
  },
  "ApplyDate": "sample string 4",
  "TotlErnLeaveInCr": 5.0,
  "TotalSickLeaveAvailed": 6.0,
  "TotalElAvailed": 7.0,
  "EncashLeaveCount": 8.0,
  "BalanceEarnLeave": 9.0,
  "BasicSal": 10.0,
  "Da": 11.0,
  "SpecialAllowance": 12.0,
  "OtherAllowance": 13.0,
  "TotalAmount": 14.0,
  "Status": "sample string 15",
  "CancelRemarks": "sample string 16",
  "ConfirmStatus": "sample string 17",
  "UpdateUser": 18,
  "UpdateIp": "sample string 19",
  "FinYear": 20,
  "CalenderYear": 21,
  "PaymentType": "sample string 22",
  "ElRemainDays": 23
}

application/xml, text/xml

Sample:
<LeaveEncashUpdateVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models">
  <ApplyDate>sample string 4</ApplyDate>
  <BalanceEarnLeave>9</BalanceEarnLeave>
  <BasicSal>10</BasicSal>
  <CalenderYear>21</CalenderYear>
  <CancelRemarks>sample string 16</CancelRemarks>
  <ConfirmStatus>sample string 17</ConfirmStatus>
  <Da>11</Da>
  <ElRemainDays>23</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>
  <EncashLeaveCount>8</EncashLeaveCount>
  <FinYear>20</FinYear>
  <LeaveType>
    <LeaveTypeId>1</LeaveTypeId>
    <LeaveTypeName>sample string 2</LeaveTypeName>
  </LeaveType>
  <LencashDate>sample string 2</LencashDate>
  <LencashId>1</LencashId>
  <OtherAllowance>13</OtherAllowance>
  <PaymentType>sample string 22</PaymentType>
  <Refno>sample string 3</Refno>
  <SpecialAllowance>12</SpecialAllowance>
  <Status>sample string 15</Status>
  <TotalAmount>14</TotalAmount>
  <TotalElAvailed>7</TotalElAvailed>
  <TotalSickLeaveAvailed>6</TotalSickLeaveAvailed>
  <TotlErnLeaveInCr>5</TotlErnLeaveInCr>
  <UpdateIp>sample string 19</UpdateIp>
  <UpdateUser>18</UpdateUser>
</LeaveEncashUpdateVM>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.