POST api/Leave/Apply

Apply Leave.

Request Information

URI Parameters

None.

Body Parameters

mLeaveInsertLayer
NameDescriptionTypeAdditional information
LeaveCodeID

integer

Required

LeaveCode

string

Required

FromDate

string

Required

ToDate

string

Required

ReasonforLeave

string

Required

dates

Collection of mLeaveDateDurationLayer

Required

Request Formats

application/json, text/json

Sample:
{
  "LeaveCodeID": 1,
  "LeaveCode": "sample string 2",
  "FromDate": "sample string 3",
  "ToDate": "sample string 4",
  "ReasonforLeave": "sample string 5",
  "dates": [
    {
      "LeaveDate": "sample string 1",
      "LeaveDuration": "sample string 2"
    },
    {
      "LeaveDate": "sample string 1",
      "LeaveDuration": "sample string 2"
    }
  ]
}

application/xml, text/xml

Sample:
<mLeaveInsertLayer xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HRiSAPI.Models">
  <FromDate>sample string 3</FromDate>
  <LeaveCode>sample string 2</LeaveCode>
  <LeaveCodeID>1</LeaveCodeID>
  <ReasonforLeave>sample string 5</ReasonforLeave>
  <ToDate>sample string 4</ToDate>
  <dates>
    <mLeaveDateDurationLayer>
      <LeaveDate>sample string 1</LeaveDate>
      <LeaveDuration>sample string 2</LeaveDuration>
    </mLeaveDateDurationLayer>
    <mLeaveDateDurationLayer>
      <LeaveDate>sample string 1</LeaveDate>
      <LeaveDuration>sample string 2</LeaveDuration>
    </mLeaveDateDurationLayer>
  </dates>
</mLeaveInsertLayer>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.