POST api/ApproveAndReject/LeaveCancelApproveAndReject
Request Information
URI Parameters
None.
Body Parameters
ApproveLeaveCancelEntityName | Description | Type | Additional information |
---|---|---|---|
LeaveId | integer |
None. |
|
Year | integer |
None. |
|
UserId | integer |
None. |
|
LeaveAppliedUserID | integer |
None. |
|
DeptId | integer |
None. |
|
LeavyType | string |
None. |
|
LeaveFrom | date |
None. |
|
LeaveTo | date |
None. |
|
EmpReason | string |
None. |
|
LeaveApplied | decimal number |
None. |
|
Balance | decimal number |
None. |
|
string |
None. |
||
FullName | string |
None. |
|
LblLevel | string |
None. |
|
LblLevelCount | string |
None. |
|
LblLeaveTypeId | string |
None. |
|
Token | string |
None. |
|
Status | integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "LeaveId": 1, "Year": 2, "UserId": 3, "LeaveAppliedUserID": 4, "DeptId": 5, "LeavyType": "sample string 6", "LeaveFrom": "2025-08-07T07:01:07.1604588+08:00", "LeaveTo": "2025-08-07T07:01:07.1604588+08:00", "EmpReason": "sample string 9", "LeaveApplied": 10.1, "Balance": 11.1, "Email": "sample string 12", "FullName": "sample string 13", "LblLevel": "sample string 14", "LblLevelCount": "sample string 15", "LblLeaveTypeId": "sample string 16", "Token": "sample string 17", "Status": 18 }
text/html
Sample:
{"LeaveId":1,"Year":2,"UserId":3,"LeaveAppliedUserID":4,"DeptId":5,"LeavyType":"sample string 6","LeaveFrom":"2025-08-07T07:01:07.1604588+08:00","LeaveTo":"2025-08-07T07:01:07.1604588+08:00","EmpReason":"sample string 9","LeaveApplied":10.1,"Balance":11.1,"Email":"sample string 12","FullName":"sample string 13","LblLevel":"sample string 14","LblLevelCount":"sample string 15","LblLeaveTypeId":"sample string 16","Token":"sample string 17","Status":18}
application/xml, text/xml
Sample:
<ApproveAndRejectController.ApproveLeaveCancelEntity xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HR2Eazy_WebApi.Controllers"> <Balance>11.1</Balance> <DeptId>5</DeptId> <Email>sample string 12</Email> <EmpReason>sample string 9</EmpReason> <FullName>sample string 13</FullName> <LblLeaveTypeId>sample string 16</LblLeaveTypeId> <LblLevel>sample string 14</LblLevel> <LblLevelCount>sample string 15</LblLevelCount> <LeaveApplied>10.1</LeaveApplied> <LeaveAppliedUserID>4</LeaveAppliedUserID> <LeaveFrom>2025-08-07T07:01:07.1604588+08:00</LeaveFrom> <LeaveId>1</LeaveId> <LeaveTo>2025-08-07T07:01:07.1604588+08:00</LeaveTo> <LeavyType>sample string 6</LeavyType> <Status>18</Status> <Token>sample string 17</Token> <UserId>3</UserId> <Year>2</Year> </ApproveAndRejectController.ApproveLeaveCancelEntity>
application/x-www-form-urlencoded
Sample:
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>