POST api/ApproveAndReject/LeaveApproveAndReject

Request Information

URI Parameters

None.

Body Parameters

ApproveLeaveEntity
NameDescriptionTypeAdditional information
LeaveId

integer

None.

Status

integer

None.

Year

integer

None.

UserId

integer

None.

LeaveAppliedUserID

integer

None.

DeptId

integer

None.

LeaveType

string

None.

LeaveFrom

date

None.

LeaveTo

date

None.

EmpReason

string

None.

LeaveApplied

decimal number

None.

Balance

decimal number

None.

Email

string

None.

FullName

string

None.

LblLevel

string

None.

LblLevelCount

string

None.

LblLeaveTypeId

string

None.

ApprovalType

string

None.

LeaveShortName

string

None.

OrgaID

string

None.

Language

string

None.

Token

string

None.

RejectReason

string

None.

LeaveSession

string

None.

Request Formats

application/json, text/json

Sample:
{
  "LeaveId": 1,
  "Status": 2,
  "Year": 3,
  "UserId": 4,
  "LeaveAppliedUserID": 5,
  "DeptId": 6,
  "LeaveType": "sample string 7",
  "LeaveFrom": "2025-08-07T06:52:43.7395592+08:00",
  "LeaveTo": "2025-08-07T06:52:43.7395592+08:00",
  "EmpReason": "sample string 10",
  "LeaveApplied": 11.1,
  "Balance": 12.1,
  "Email": "sample string 13",
  "FullName": "sample string 14",
  "LblLevel": "sample string 15",
  "LblLevelCount": "sample string 16",
  "LblLeaveTypeId": "sample string 17",
  "ApprovalType": "sample string 18",
  "LeaveShortName": "sample string 19",
  "OrgaID": "sample string 20",
  "Language": "sample string 21",
  "Token": "sample string 22",
  "RejectReason": "sample string 23",
  "LeaveSession": "sample string 24"
}

text/html

Sample:
{"LeaveId":1,"Status":2,"Year":3,"UserId":4,"LeaveAppliedUserID":5,"DeptId":6,"LeaveType":"sample string 7","LeaveFrom":"2025-08-07T06:52:43.7395592+08:00","LeaveTo":"2025-08-07T06:52:43.7395592+08:00","EmpReason":"sample string 10","LeaveApplied":11.1,"Balance":12.1,"Email":"sample string 13","FullName":"sample string 14","LblLevel":"sample string 15","LblLevelCount":"sample string 16","LblLeaveTypeId":"sample string 17","ApprovalType":"sample string 18","LeaveShortName":"sample string 19","OrgaID":"sample string 20","Language":"sample string 21","Token":"sample string 22","RejectReason":"sample string 23","LeaveSession":"sample string 24"}

application/xml, text/xml

Sample:
<ApproveAndRejectController.ApproveLeaveEntity xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HR2Eazy_WebApi.Controllers">
  <ApprovalType>sample string 18</ApprovalType>
  <Balance>12.1</Balance>
  <DeptId>6</DeptId>
  <Email>sample string 13</Email>
  <EmpReason>sample string 10</EmpReason>
  <FullName>sample string 14</FullName>
  <Language>sample string 21</Language>
  <LblLeaveTypeId>sample string 17</LblLeaveTypeId>
  <LblLevel>sample string 15</LblLevel>
  <LblLevelCount>sample string 16</LblLevelCount>
  <LeaveApplied>11.1</LeaveApplied>
  <LeaveAppliedUserID>5</LeaveAppliedUserID>
  <LeaveFrom>2025-08-07T06:52:43.7395592+08:00</LeaveFrom>
  <LeaveId>1</LeaveId>
  <LeaveSession>sample string 24</LeaveSession>
  <LeaveShortName>sample string 19</LeaveShortName>
  <LeaveTo>2025-08-07T06:52:43.7395592+08:00</LeaveTo>
  <LeaveType>sample string 7</LeaveType>
  <OrgaID>sample string 20</OrgaID>
  <RejectReason>sample string 23</RejectReason>
  <Status>2</Status>
  <Token>sample string 22</Token>
  <UserId>4</UserId>
  <Year>3</Year>
</ApproveAndRejectController.ApproveLeaveEntity>

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

Response Information

Resource Description

Dictionary of Object [key] and Object [value]

Response Formats

application/json, text/json, text/html

Sample:
{"System.Object":{},"System.Object":{}}

application/xml, text/xml

Sample:
<ArrayOfKeyValueOfanyTypeanyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
  <KeyValueOfanyTypeanyType>
    <Key />
    <Value />
  </KeyValueOfanyTypeanyType>
  <KeyValueOfanyTypeanyType>
    <Key />
    <Value />
  </KeyValueOfanyTypeanyType>
</ArrayOfKeyValueOfanyTypeanyType>