POST employee/my-leave-application/apply

Request Information

URI Parameters

None.

Body Parameters

LeaveApplicationVm
NameDescriptionTypeAdditional information
OrganisationId

string

None.

OrganisationName

string

None.

OrganisationLogo

string

None.

EmployeeId

string

None.

EmployeeName

string

None.

EmployeeEmail

string

None.

LeaveTypeId

string

None.

LeaveTypeDescription

string

None.

NumberOfLeaveDays

decimal number

None.

Remarks

string

None.

CreatedDate

date

None.

CreatedDateStr

string

None.

CreatedDateStrEmp

string

None.

Status

string

None.

StartDateStr

string

None.

EndDateStr

string

None.

ApproverName

string

None.

ApproverEmail

string

None.

StartDate

date

None.

StartDateDisplay

string

None.

StartDateDisplayEmp

string

None.

StartDateCal

string

None.

EndDate

date

None.

EndDateDisplay

string

None.

EndDateDisplayEmp

string

None.

EndDateCal

string

None.

MedicalCertificateFile

string

None.

MedicalCertificateFileName

string

None.

SelectedLeaveType

string

None.

SelectedLeaveTitle

string

None.

Token

string

None.

Id

string

None.

CurrentPage

integer

None.

SizePerPage

integer

None.

Date

string

None.

Request Formats

application/json, text/json

Sample:
{
  "OrganisationId": "sample string 1",
  "OrganisationName": "sample string 2",
  "OrganisationLogo": "sample string 3",
  "EmployeeId": "sample string 4",
  "EmployeeName": "sample string 5",
  "EmployeeEmail": "sample string 6",
  "LeaveTypeId": "sample string 7",
  "LeaveTypeDescription": "sample string 8",
  "NumberOfLeaveDays": 9.1,
  "Remarks": "sample string 10",
  "CreatedDate": "2026-01-01T02:48:22.2271221+08:00",
  "CreatedDateStr": "01 January 2026 02:48:22",
  "CreatedDateStrEmp": "Thursday, 01 January 2026",
  "Status": "sample string 12",
  "StartDateStr": "sample string 13",
  "EndDateStr": "sample string 14",
  "ApproverName": "sample string 15",
  "ApproverEmail": "sample string 16",
  "StartDate": "2026-01-01T02:48:22.2271221+08:00",
  "StartDateDisplay": "01 January 2026",
  "StartDateDisplayEmp": "Thursday, 01 January 2026",
  "StartDateCal": "2026-01-01",
  "EndDate": "2026-01-01T02:48:22.2271221+08:00",
  "EndDateDisplay": "01 January 2026",
  "EndDateDisplayEmp": "Thursday, 01 January 2026",
  "EndDateCal": "2026-01-01",
  "MedicalCertificateFile": "sample string 19",
  "MedicalCertificateFileName": "sample string 20",
  "SelectedLeaveType": "sample string 21",
  "SelectedLeaveTitle": "sample string 22",
  "Token": "sample string 23",
  "Id": "sample string 24",
  "CurrentPage": 25,
  "SizePerPage": 26,
  "Date": "sample string 27"
}

application/xml, text/xml

Sample:
<LeaveApplicationVm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LeaveManagementSystem.ViewModels">
  <CurrentPage>25</CurrentPage>
  <Date>sample string 27</Date>
  <Id>sample string 24</Id>
  <SizePerPage>26</SizePerPage>
  <Token>sample string 23</Token>
  <ApproverEmail>sample string 16</ApproverEmail>
  <ApproverName>sample string 15</ApproverName>
  <CreatedDate>2026-01-01T02:48:22.2271221+08:00</CreatedDate>
  <EmployeeEmail>sample string 6</EmployeeEmail>
  <EmployeeId>sample string 4</EmployeeId>
  <EmployeeName>sample string 5</EmployeeName>
  <EndDate>2026-01-01T02:48:22.2271221+08:00</EndDate>
  <EndDateStr>sample string 14</EndDateStr>
  <LeaveTypeDescription>sample string 8</LeaveTypeDescription>
  <LeaveTypeId>sample string 7</LeaveTypeId>
  <MedicalCertificateFile>sample string 19</MedicalCertificateFile>
  <MedicalCertificateFileName>sample string 20</MedicalCertificateFileName>
  <NumberOfLeaveDays>9.1</NumberOfLeaveDays>
  <OrganisationId>sample string 1</OrganisationId>
  <OrganisationLogo>sample string 3</OrganisationLogo>
  <OrganisationName>sample string 2</OrganisationName>
  <Remarks>sample string 10</Remarks>
  <SelectedLeaveTitle>sample string 22</SelectedLeaveTitle>
  <SelectedLeaveType>sample string 21</SelectedLeaveType>
  <StartDate>2026-01-01T02:48:22.2271221+08:00</StartDate>
  <StartDateStr>sample string 13</StartDateStr>
  <Status>sample string 12</Status>
</LeaveApplicationVm>

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.