POST api/leaveentry2/insert

Request Information

URI Parameters

None.

Body Parameters

InsertLeaveEntry2RequestModel
NameDescriptionTypeAdditional information
LeaveEntryID

integer

None.

TransactionNumberID

integer

None.

CounterSessionID

integer

None.

ProjectManagementID

integer

None.

FinancialYearID

integer

None.

BranchID

integer

None.

EmployeeID

integer

None.

LeaveTypeID

integer

None.

HalfDay

boolean

None.

NoofDays

decimal number

None.

Amount

decimal number

None.

EmployeeLedgerID

integer

None.

EmployeeExpenseID

integer

None.

Reason

string

None.

Remarks

string

None.

UserID

integer

None.

Dates

Collection of LeaveEntryDatesRowModel

None.

Request Formats

application/json, text/json

Sample:
{
  "LeaveEntryID": 1,
  "TransactionNumberID": 2,
  "CounterSessionID": 3,
  "ProjectManagementID": 4,
  "FinancialYearID": 5,
  "BranchID": 6,
  "EmployeeID": 7,
  "LeaveTypeID": 8,
  "HalfDay": true,
  "NoofDays": 10.0,
  "Amount": 11.0,
  "EmployeeLedgerID": 12,
  "EmployeeExpenseID": 13,
  "Reason": "sample string 14",
  "Remarks": "sample string 15",
  "UserID": 16,
  "Dates": [
    {
      "SingleDate": "2026-10-15T11:11:30.9171616-07:00"
    },
    {
      "SingleDate": "2026-10-15T11:11:30.9171616-07:00"
    }
  ]
}

application/xml, text/xml

Sample:
<InsertLeaveEntry2RequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CrushMateBackendAPI.Controllers">
  <Amount>11</Amount>
  <BranchID>6</BranchID>
  <CounterSessionID>3</CounterSessionID>
  <Dates>
    <LeaveEntryDatesRowModel>
      <SingleDate>2026-10-15T11:11:30.9171616-07:00</SingleDate>
    </LeaveEntryDatesRowModel>
    <LeaveEntryDatesRowModel>
      <SingleDate>2026-10-15T11:11:30.9171616-07:00</SingleDate>
    </LeaveEntryDatesRowModel>
  </Dates>
  <EmployeeExpenseID>13</EmployeeExpenseID>
  <EmployeeID>7</EmployeeID>
  <EmployeeLedgerID>12</EmployeeLedgerID>
  <FinancialYearID>5</FinancialYearID>
  <HalfDay>true</HalfDay>
  <LeaveEntryID>1</LeaveEntryID>
  <LeaveTypeID>8</LeaveTypeID>
  <NoofDays>10</NoofDays>
  <ProjectManagementID>4</ProjectManagementID>
  <Reason>sample string 14</Reason>
  <Remarks>sample string 15</Remarks>
  <TransactionNumberID>2</TransactionNumberID>
  <UserID>16</UserID>
</InsertLeaveEntry2RequestModel>

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 'InsertLeaveEntry2RequestModel'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.