POST api/Leave/EditLeave

Documentation for 'EditLeave'.

Request Information

Parameters

NameDescriptionAdditional information
objLeaveEntry
Documentation for 'objLeaveEntry'.

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "EmployeeCode": "sample string 1",
  "EmployeeName": "sample string 2",
  "Designation": "sample string 3",
  "EmployeeImage": "sample string 4",
  "LeaveCode": "sample string 5",
  "StartDate": "sample string 6",
  "EndDate": "sample string 7",
  "LeaveStatus": "sample string 8",
  "LeaveID": "sample string 9",
  "NoofDays": "sample string 10",
  "IMEI": "sample string 11"
}

application/xml, text/xml

Sample:
<LeaveEntryDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DTO">
  <Designation>sample string 3</Designation>
  <EmployeeCode>sample string 1</EmployeeCode>
  <EmployeeImage>sample string 4</EmployeeImage>
  <EmployeeName>sample string 2</EmployeeName>
  <EndDate>sample string 7</EndDate>
  <IMEI>sample string 11</IMEI>
  <LeaveCode>sample string 5</LeaveCode>
  <LeaveID>sample string 9</LeaveID>
  <LeaveStatus>sample string 8</LeaveStatus>
  <NoofDays>sample string 10</NoofDays>
  <StartDate>sample string 6</StartDate>
</LeaveEntryDTO>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'FormUrlEncodedMediaTypeFormatterTracer' to write type 'LeaveEntryDTO'.