PUT api/PayrollLeaveEntry/Update

Request Information

URI Parameters

None.

Body Parameters

PayrollLeaveEntryUpdateVM
NameDescriptionTypeAdditional information
LeaveEntryId

integer

Required

BookId

integer

Required

Employee

EmployeeLookup

Required

LeaveEntryDate

string

Required

LeaveDateFrom

string

Required

LeaveDateTo

string

Required

TotalLeaves

decimal number

Required

LeaveType

PayrollLeaveTypeLookupVM

Required

LeaveReason

string

String length: inclusive between 0 and 200

Remarks

string

String length: inclusive between 0 and 200

UpdateUser

integer

Required

UpdateIp

string

Required

String length: inclusive between 0 and 20

CalenderYear

integer

Required

Request Formats

application/json, text/json

Sample:
{
  "LeaveEntryId": 1,
  "BookId": 2,
  "Employee": {
    "EmployeeId": 1,
    "EmployeeName": "sample string 2",
    "Prefix": "sample string 3",
    "PresentHouseName": "sample string 4",
    "PresentAddress": "sample string 5",
    "EmployeeStatus": "sample string 6"
  },
  "LeaveEntryDate": "sample string 3",
  "LeaveDateFrom": "sample string 4",
  "LeaveDateTo": "sample string 5",
  "TotalLeaves": 6.0,
  "LeaveType": {
    "LeaveTypeId": 1,
    "LeaveTypeName": "sample string 2"
  },
  "LeaveReason": "sample string 7",
  "Remarks": "sample string 8",
  "UpdateUser": 9,
  "UpdateIp": "sample string 10",
  "CalenderYear": 11
}

application/xml, text/xml

Sample:
<PayrollLeaveEntryUpdateVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models">
  <BookId>2</BookId>
  <CalenderYear>11</CalenderYear>
  <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>
  <LeaveDateFrom>sample string 4</LeaveDateFrom>
  <LeaveDateTo>sample string 5</LeaveDateTo>
  <LeaveEntryDate>sample string 3</LeaveEntryDate>
  <LeaveEntryId>1</LeaveEntryId>
  <LeaveReason>sample string 7</LeaveReason>
  <LeaveType>
    <LeaveTypeId>1</LeaveTypeId>
    <LeaveTypeName>sample string 2</LeaveTypeName>
  </LeaveType>
  <Remarks>sample string 8</Remarks>
  <TotalLeaves>6</TotalLeaves>
  <UpdateIp>sample string 10</UpdateIp>
  <UpdateUser>9</UpdateUser>
</PayrollLeaveEntryUpdateVM>

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.