POST admin/leave-entitlement/add

Request Information

URI Parameters

None.

Body Parameters

LeaveEntitlementVm
NameDescriptionTypeAdditional information
UserId

string

None.

EmployeeId

string

None.

EmployeeName

string

None.

Year

string

None.

LeaveTypeId

string

None.

LeaveTypeDescription

string

None.

LeaveTypeTitle

string

None.

IsOthersSelected

boolean

None.

EffectiveDate

date

None.

EffectiveDateDisplay

string

None.

EffectiveDateCal

string

None.

EffectiveDateStr

string

None.

ExpiryDate

date

None.

ExpiryDateDisplay

string

None.

ExpiryDateCal

string

None.

ExpiryDateStr

string

None.

TotalLeaveEntitlementDays

decimal number

None.

LeaveDaysTaken

decimal number

None.

LeaveDaysBalance

decimal number

None.

Token

string

None.

Id

string

None.

CurrentPage

integer

None.

SizePerPage

integer

None.

Date

string

None.

Request Formats

application/json, text/json

Sample:
{
  "UserId": "sample string 1",
  "EmployeeId": "sample string 2",
  "EmployeeName": "sample string 3",
  "Year": "sample string 4",
  "LeaveTypeId": "sample string 5",
  "LeaveTypeDescription": "sample string 6",
  "LeaveTypeTitle": "sample string 7",
  "IsOthersSelected": true,
  "EffectiveDate": "2026-01-01T02:46:37.8214953+08:00",
  "EffectiveDateDisplay": "01 January 2026",
  "EffectiveDateCal": "2026-01-01",
  "EffectiveDateStr": "sample string 10",
  "ExpiryDate": "2026-01-01T02:46:37.8214953+08:00",
  "ExpiryDateDisplay": "01 January 2026",
  "ExpiryDateCal": "2026-01-01",
  "ExpiryDateStr": "sample string 11",
  "TotalLeaveEntitlementDays": 12.1,
  "LeaveDaysTaken": 13.1,
  "LeaveDaysBalance": 14.1,
  "Token": "sample string 15",
  "Id": "sample string 16",
  "CurrentPage": 17,
  "SizePerPage": 18,
  "Date": "sample string 19"
}

application/xml, text/xml

Sample:
<LeaveEntitlementVm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LeaveManagementSystem.ViewModels">
  <CurrentPage>17</CurrentPage>
  <Date>sample string 19</Date>
  <Id>sample string 16</Id>
  <SizePerPage>18</SizePerPage>
  <Token>sample string 15</Token>
  <EffectiveDate>2026-01-01T02:46:37.8214953+08:00</EffectiveDate>
  <EffectiveDateStr>sample string 10</EffectiveDateStr>
  <EmployeeId>sample string 2</EmployeeId>
  <EmployeeName>sample string 3</EmployeeName>
  <ExpiryDate>2026-01-01T02:46:37.8214953+08:00</ExpiryDate>
  <ExpiryDateStr>sample string 11</ExpiryDateStr>
  <IsOthersSelected>true</IsOthersSelected>
  <LeaveDaysBalance>14.1</LeaveDaysBalance>
  <LeaveDaysTaken>13.1</LeaveDaysTaken>
  <LeaveTypeDescription>sample string 6</LeaveTypeDescription>
  <LeaveTypeId>sample string 5</LeaveTypeId>
  <LeaveTypeTitle>sample string 7</LeaveTypeTitle>
  <TotalLeaveEntitlementDays>12.1</TotalLeaveEntitlementDays>
  <UserId>sample string 1</UserId>
  <Year>sample string 4</Year>
</LeaveEntitlementVm>

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.