POST api/EmployeeLeaveApproval/insertRecord

Request Information

URI Parameters

None.

Body Parameters

EmployeeLeaveRequest
NameDescriptionTypeAdditional information
EmployeeLeaveRequestId

decimal number

None.

BranchId

decimal number

None.

EmployeeId

decimal number

None.

OrganizationId

decimal number

None.

LeaveFromDate

date

None.

LeaveEndDate

date

None.

LeaveApprovedFromDate

date

None.

LeaveApprovedEndDate

date

None.

LeaveRequestStatus

integer

None.

EmployeeName

string

None.

LeaveReason

string

None.

AcademicYear

string

None.

YearId

decimal number

None.

LeaveApprovedBy

decimal number

None.

LeaveRemark

string

None.

TotalRecords

decimal number

None.

EditReason

string

None.

CreatedBy

decimal number

None.

CreatedByEmployee

string

None.

CreatedDate

date

None.

UpdatedBy

decimal number

None.

UpdatedByEmployee

string

None.

UpdatedDate

date

None.

Status

string

None.

strEmployeeLeaveRequestDetails

string

None.

Request Formats

application/json, text/json

Sample:
{
  "EmployeeLeaveRequestId": 1.0,
  "BranchId": 1.0,
  "EmployeeId": 2.0,
  "OrganizationId": 3.0,
  "LeaveFromDate": "2022-05-27T08:48:49.2471697+05:30",
  "LeaveEndDate": "2022-05-27T08:48:49.2471697+05:30",
  "LeaveApprovedFromDate": "2022-05-27T08:48:49.2471697+05:30",
  "LeaveApprovedEndDate": "2022-05-27T08:48:49.2471697+05:30",
  "LeaveRequestStatus": 1,
  "EmployeeName": "sample string 4",
  "LeaveReason": "sample string 5",
  "AcademicYear": "sample string 6",
  "YearId": 1.0,
  "LeaveApprovedBy": 1.0,
  "LeaveRemark": "sample string 7",
  "TotalRecords": 1.0,
  "EditReason": "sample string 8",
  "CreatedBy": 9.0,
  "CreatedByEmployee": "sample string 10",
  "CreatedDate": "2022-05-27T08:48:49.2471697+05:30",
  "UpdatedBy": 11.0,
  "UpdatedByEmployee": "sample string 12",
  "UpdatedDate": "2022-05-27T08:48:49.2471697+05:30",
  "Status": "sample string 13",
  "strEmployeeLeaveRequestDetails": "sample string 14"
}

application/xml, text/xml

Sample:
<EmployeeLeaveRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ZenoxERP.API.Models.Extensions">
  <AcademicYear>sample string 6</AcademicYear>
  <BranchId>1</BranchId>
  <CreatedBy>9</CreatedBy>
  <CreatedByEmployee>sample string 10</CreatedByEmployee>
  <CreatedDate>2022-05-27T08:48:49.2471697+05:30</CreatedDate>
  <EditReason>sample string 8</EditReason>
  <EmployeeId>2</EmployeeId>
  <EmployeeLeaveRequestId>1</EmployeeLeaveRequestId>
  <EmployeeName>sample string 4</EmployeeName>
  <LeaveApprovedBy>1</LeaveApprovedBy>
  <LeaveApprovedEndDate>2022-05-27T08:48:49.2471697+05:30</LeaveApprovedEndDate>
  <LeaveApprovedFromDate>2022-05-27T08:48:49.2471697+05:30</LeaveApprovedFromDate>
  <LeaveEndDate>2022-05-27T08:48:49.2471697+05:30</LeaveEndDate>
  <LeaveFromDate>2022-05-27T08:48:49.2471697+05:30</LeaveFromDate>
  <LeaveReason>sample string 5</LeaveReason>
  <LeaveRemark>sample string 7</LeaveRemark>
  <LeaveRequestStatus>1</LeaveRequestStatus>
  <OrganizationId>3</OrganizationId>
  <Status>sample string 13</Status>
  <TotalRecords>1</TotalRecords>
  <UpdatedBy>11</UpdatedBy>
  <UpdatedByEmployee>sample string 12</UpdatedByEmployee>
  <UpdatedDate>2022-05-27T08:48:49.2471697+05:30</UpdatedDate>
  <YearId>1</YearId>
  <strEmployeeLeaveRequestDetails>sample string 14</strEmployeeLeaveRequestDetails>
</EmployeeLeaveRequest>

application/x-www-form-urlencoded

Sample:

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

Response Information

Resource Description

integer

Response Formats

application/json, text/json

Sample:
1

application/xml, text/xml

Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>