PUT api/LeaveOpening/Update

Request Information

URI Parameters

None.

Body Parameters

LeaveOpeningUpdateVM
NameDescriptionTypeAdditional information
Employee

EmployeeLookup

Required

CalenderYear

integer

Required

LeaveType

PayrollLeaveTypeLookupVM

Required

OpLeaves

decimal number

None.

CfLeaves

decimal number

None.

EarnedLeaves

decimal number

None.

TotalOpLeaves

decimal number

None.

ElLastProcessDate

string

None.

ElRemainDays

integer

None.

UpdateUser

integer

Required

UpdateIp

string

Required

String length: inclusive between 0 and 20

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"
  },
  "CalenderYear": 1,
  "LeaveType": {
    "LeaveTypeId": 1,
    "LeaveTypeName": "sample string 2"
  },
  "OpLeaves": 2.0,
  "CfLeaves": 3.0,
  "EarnedLeaves": 4.0,
  "TotalOpLeaves": 5.0,
  "ElLastProcessDate": "sample string 6",
  "ElRemainDays": 7,
  "UpdateUser": 8,
  "UpdateIp": "sample string 9"
}

application/xml, text/xml

Sample:
<LeaveOpeningUpdateVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models">
  <CalenderYear>1</CalenderYear>
  <CfLeaves>3</CfLeaves>
  <EarnedLeaves>4</EarnedLeaves>
  <ElLastProcessDate>sample string 6</ElLastProcessDate>
  <ElRemainDays>7</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>
  <LeaveType>
    <LeaveTypeId>1</LeaveTypeId>
    <LeaveTypeName>sample string 2</LeaveTypeName>
  </LeaveType>
  <OpLeaves>2</OpLeaves>
  <TotalOpLeaves>5</TotalOpLeaves>
  <UpdateIp>sample string 9</UpdateIp>
  <UpdateUser>8</UpdateUser>
</LeaveOpeningUpdateVM>

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.