POST api/ApproveAndReject/LeaveReliefOfficerApproveAndReject

Request Information

URI Parameters

None.

Body Parameters

ReleifApproverEntity
NameDescriptionTypeAdditional information
LeaveId

integer

None.

Status

integer

None.

Year

integer

None.

UserId

integer

None.

LeaveAppliedUserID

integer

None.

Language

string

None.

Token

string

None.

RejectReason

string

None.

Email

string

None.

FullName

string

None.

DeptId

integer

None.

LeaveType

string

None.

LeaveFrom

date

None.

LeaveTo

date

None.

EmpReason

string

None.

LeaveApplied

decimal number

None.

LblLevel

string

None.

LblLevelCount

string

None.

LeaveSession

string

None.

Request Formats

application/json, text/json

Sample:
{
  "LeaveId": 1,
  "Status": 2,
  "Year": 3,
  "UserId": 4,
  "LeaveAppliedUserID": 5,
  "Language": "sample string 6",
  "Token": "sample string 7",
  "RejectReason": "sample string 8",
  "Email": "sample string 9",
  "FullName": "sample string 10",
  "DeptId": 11,
  "LeaveType": "sample string 12",
  "LeaveFrom": "2025-08-07T06:56:27.5264959+08:00",
  "LeaveTo": "2025-08-07T06:56:27.5264959+08:00",
  "EmpReason": "sample string 15",
  "LeaveApplied": 16.1,
  "LblLevel": "sample string 17",
  "LblLevelCount": "sample string 18",
  "LeaveSession": "sample string 19"
}

text/html

Sample:
{"LeaveId":1,"Status":2,"Year":3,"UserId":4,"LeaveAppliedUserID":5,"Language":"sample string 6","Token":"sample string 7","RejectReason":"sample string 8","Email":"sample string 9","FullName":"sample string 10","DeptId":11,"LeaveType":"sample string 12","LeaveFrom":"2025-08-07T06:56:27.5264959+08:00","LeaveTo":"2025-08-07T06:56:27.5264959+08:00","EmpReason":"sample string 15","LeaveApplied":16.1,"LblLevel":"sample string 17","LblLevelCount":"sample string 18","LeaveSession":"sample string 19"}

application/xml, text/xml

Sample:
<ApproveAndRejectController.ReleifApproverEntity xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HR2Eazy_WebApi.Controllers">
  <DeptId>11</DeptId>
  <Email>sample string 9</Email>
  <EmpReason>sample string 15</EmpReason>
  <FullName>sample string 10</FullName>
  <Language>sample string 6</Language>
  <LblLevel>sample string 17</LblLevel>
  <LblLevelCount>sample string 18</LblLevelCount>
  <LeaveApplied>16.1</LeaveApplied>
  <LeaveAppliedUserID>5</LeaveAppliedUserID>
  <LeaveFrom>2025-08-07T06:56:27.5264959+08:00</LeaveFrom>
  <LeaveId>1</LeaveId>
  <LeaveSession>sample string 19</LeaveSession>
  <LeaveTo>2025-08-07T06:56:27.5264959+08:00</LeaveTo>
  <LeaveType>sample string 12</LeaveType>
  <RejectReason>sample string 8</RejectReason>
  <Status>2</Status>
  <Token>sample string 7</Token>
  <UserId>4</UserId>
  <Year>3</Year>
</ApproveAndRejectController.ReleifApproverEntity>

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

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>