POST api/v1/hR_LeaveApplication

Request Information

URI Parameters

None.

Body Parameters

HR_LeaveApplicationVM
NameDescriptionTypeAdditional information
leaveApplicationId

integer

None.

employeeId

integer

None.

leaveTypeId

integer

None.

leaveStartDate

date

None.

leaveEndDate

date

None.

resumptionDate

date

None.

approveDays

integer

None.

comment

string

None.

tenantId

integer

None.

dateCreated

date

None.

apprivalStatusId

integer

None.

dateApproved

date

None.

approveBy

integer

None.

approvalWorkFlowReference

string

None.

addressOnLeave

string

None.

contactNumberOnLeave

string

None.

businessYearId

integer

None.

createdBy

integer

None.

approvalStatusName

string

None.

employeeName

string

None.

leaveTypeName

string

None.

businessYearName

string

None.

Request Formats

application/json, text/json

Sample:
{
  "leaveApplicationId": 1,
  "employeeId": 1,
  "leaveTypeId": 1,
  "leaveStartDate": "2024-11-24T08:54:53.2601013-08:00",
  "leaveEndDate": "2024-11-24T08:54:53.2601013-08:00",
  "resumptionDate": "2024-11-24T08:54:53.2601013-08:00",
  "approveDays": 1,
  "comment": "sample string 2",
  "tenantId": 1,
  "dateCreated": "2024-11-24T08:54:53.2601013-08:00",
  "apprivalStatusId": 1,
  "dateApproved": "2024-11-24T08:54:53.2601013-08:00",
  "approveBy": 1,
  "approvalWorkFlowReference": "sample string 3",
  "addressOnLeave": "sample string 4",
  "contactNumberOnLeave": "sample string 5",
  "businessYearId": 1,
  "createdBy": 6,
  "approvalStatusName": "sample string 7",
  "employeeName": "sample string 8",
  "leaveTypeName": "sample string 9",
  "businessYearName": "sample string 10"
}

application/xml, text/xml

Sample:
<HR_LeaveApplicationVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Data.TransferObject.ViewModel">
  <addressOnLeave>sample string 4</addressOnLeave>
  <apprivalStatusId>1</apprivalStatusId>
  <approvalStatusName>sample string 7</approvalStatusName>
  <approvalWorkFlowReference>sample string 3</approvalWorkFlowReference>
  <approveBy>1</approveBy>
  <approveDays>1</approveDays>
  <businessYearId>1</businessYearId>
  <businessYearName>sample string 10</businessYearName>
  <comment>sample string 2</comment>
  <contactNumberOnLeave>sample string 5</contactNumberOnLeave>
  <createdBy>6</createdBy>
  <dateApproved>2024-11-24T08:54:53.2601013-08:00</dateApproved>
  <dateCreated>2024-11-24T08:54:53.2601013-08:00</dateCreated>
  <employeeId>1</employeeId>
  <employeeName>sample string 8</employeeName>
  <leaveApplicationId>1</leaveApplicationId>
  <leaveEndDate>2024-11-24T08:54:53.2601013-08:00</leaveEndDate>
  <leaveStartDate>2024-11-24T08:54:53.2601013-08:00</leaveStartDate>
  <leaveTypeId>1</leaveTypeId>
  <leaveTypeName>sample string 9</leaveTypeName>
  <resumptionDate>2024-11-24T08:54:53.2601013-08:00</resumptionDate>
  <tenantId>1</tenantId>
</HR_LeaveApplicationVM>

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.