POST api/Leave/ManageEmployeeLeaveBalance

Request Information

URI Parameters

None.

Body Parameters

LeaveBalanceModel
NameDescriptionTypeAdditional information
Id

integer

None.

EmpId

integer

None.

EmployeeName

string

None.

LeaveTypeId

integer

None.

EntitleLeave

decimal number

None.

RemainingLeave

decimal number

None.

UsedLeave

decimal number

None.

YearEntitled

integer

None.

MonthEntitled

integer

None.

ValidFrom

date

None.

ValidTo

date

None.

ValidDateFrom

date

None.

ValidDateTo

date

None.

UserId

integer

None.

DateAdded

date

None.

ClientId

integer

None.

ClientName

string

None.

CreditEarnedPerMonth

decimal number

None.

IsConvertable

boolean

None.

AutoResetPerYear

boolean

None.

WhenCreditIsEarned

string

None.

EarnedLeave

decimal number

None.

BalanceLeave

decimal number

None.

Mode

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "EmpId": 2,
  "EmployeeName": "sample string 3",
  "LeaveTypeId": 4,
  "EntitleLeave": 5.0,
  "RemainingLeave": 6.0,
  "UsedLeave": 7.0,
  "YearEntitled": 8,
  "MonthEntitled": 9,
  "ValidFrom": "2026-11-21T12:46:40.3999201+08:00",
  "ValidTo": "2026-11-21T12:46:40.3999201+08:00",
  "ValidDateFrom": "2026-11-21T12:46:40.3999201+08:00",
  "ValidDateTo": "2026-11-21T12:46:40.3999201+08:00",
  "UserId": 10,
  "DateAdded": "2026-11-21T12:46:40.3999201+08:00",
  "ClientId": 12,
  "ClientName": "sample string 13",
  "CreditEarnedPerMonth": 14.0,
  "IsConvertable": true,
  "AutoResetPerYear": true,
  "WhenCreditIsEarned": "sample string 17",
  "EarnedLeave": 18.0,
  "BalanceLeave": 19.0,
  "Mode": 1
}

application/xml, text/xml

Sample:
<Leave_model.LeaveBalanceModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HRModel.ViewModel.Leave">
  <AutoResetPerYear>true</AutoResetPerYear>
  <BalanceLeave>19</BalanceLeave>
  <ClientId>12</ClientId>
  <ClientName>sample string 13</ClientName>
  <CreditEarnedPerMonth>14</CreditEarnedPerMonth>
  <DateAdded>2026-11-21T12:46:40.3999201+08:00</DateAdded>
  <EarnedLeave>18</EarnedLeave>
  <EmpId>2</EmpId>
  <EmployeeName>sample string 3</EmployeeName>
  <EntitleLeave>5</EntitleLeave>
  <Id>1</Id>
  <IsConvertable>true</IsConvertable>
  <LeaveTypeId>4</LeaveTypeId>
  <Mode>1</Mode>
  <MonthEntitled>9</MonthEntitled>
  <RemainingLeave>6</RemainingLeave>
  <UsedLeave>7</UsedLeave>
  <UserId>10</UserId>
  <ValidDateFrom>2026-11-21T12:46:40.3999201+08:00</ValidDateFrom>
  <ValidDateTo>2026-11-21T12:46:40.3999201+08:00</ValidDateTo>
  <ValidFrom>2026-11-21T12:46:40.3999201+08:00</ValidFrom>
  <ValidTo>2026-11-21T12:46:40.3999201+08:00</ValidTo>
  <WhenCreditIsEarned>sample string 17</WhenCreditIsEarned>
  <YearEntitled>8</YearEntitled>
</Leave_model.LeaveBalanceModel>

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.