POST api/Leave/PostApproveLeave

Request Information

URI Parameters

None.

Body Parameters

EmployeeLeaveApplicationDetailsViewModel
NameDescriptionTypeAdditional information
EmployeeName

string

None.

EmployeeClass

string

None.

ApplicationDate

date

None.

Type

string

None.

FromDateTime

string

None.

ToDateTime

string

None.

NoofDays

decimal number

None.

ReasonforLeave

string

None.

Comments

string

None.

Status

string

None.

MessageToPeers

string

None.

DocumentPath

string

None.

NotifyEmployees

string

None.

FromStartTime

string

None.

ToEndTime

string

None.

LeaveApplicationID

integer

None.

LoginEmployeeID

integer

None.

EmployeeID

integer

None.

LeaveTypeId

integer

None.

PersonId

integer

None.

DocumentName

string

None.

LeaveStatus

string

None.

EmployeeEmailIds

string

None.

NotifyEmployeeList

Collection of LeaveNotifyEmployeesViewModel

None.

BalanceLeaves

decimal number

None.

DayValue

decimal number

None.

HoursValue

decimal number

None.

FromFullDayIND

boolean

None.

ToFullDayIND

boolean

None.

FromHalfDayIND

boolean

None.

ToHalfDayIND

boolean

None.

NotifyPeersIND

boolean

None.

LocationID

integer

None.

Userconfirmation

boolean

None.

ClarifyId

integer

None.

SenderId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "EmployeeName": "sample string 1",
  "EmployeeClass": "sample string 2",
  "ApplicationDate": "2024-09-20T00:18:04.202893+05:30",
  "Type": "sample string 4",
  "FromDateTime": "sample string 5",
  "ToDateTime": "sample string 6",
  "NoofDays": 7.0,
  "ReasonforLeave": "sample string 8",
  "Comments": "sample string 9",
  "Status": "sample string 10",
  "MessageToPeers": "sample string 11",
  "DocumentPath": "sample string 12",
  "NotifyEmployees": "sample string 13",
  "FromStartTime": "sample string 14",
  "ToEndTime": "sample string 15",
  "LeaveApplicationID": 16,
  "LoginEmployeeID": 17,
  "EmployeeID": 18,
  "LeaveTypeId": 19,
  "PersonId": 20,
  "DocumentName": "sample string 21",
  "LeaveStatus": "sample string 22",
  "EmployeeEmailIds": "sample string 23",
  "NotifyEmployeeList": [
    {
      "NotifyTypeId": 1,
      "LeaveApplicationID": 2,
      "PersonID": 3,
      "EmailIds": "sample string 4"
    },
    {
      "NotifyTypeId": 1,
      "LeaveApplicationID": 2,
      "PersonID": 3,
      "EmailIds": "sample string 4"
    }
  ],
  "BalanceLeaves": 24.0,
  "DayValue": 25.0,
  "HoursValue": 26.0,
  "FromFullDayIND": true,
  "ToFullDayIND": true,
  "FromHalfDayIND": true,
  "ToHalfDayIND": true,
  "NotifyPeersIND": true,
  "LocationID": 32,
  "Userconfirmation": true,
  "ClarifyId": 34,
  "SenderId": 35
}

application/xml, text/xml

Sample:
<EmployeeLeaveApplicationDetailsViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HRMSWebAPI.Transaction.Leave">
  <ApplicationDate>2024-09-20T00:18:04.202893+05:30</ApplicationDate>
  <BalanceLeaves>24</BalanceLeaves>
  <ClarifyId>34</ClarifyId>
  <Comments>sample string 9</Comments>
  <DayValue>25</DayValue>
  <DocumentName>sample string 21</DocumentName>
  <DocumentPath>sample string 12</DocumentPath>
  <EmployeeClass>sample string 2</EmployeeClass>
  <EmployeeEmailIds>sample string 23</EmployeeEmailIds>
  <EmployeeID>18</EmployeeID>
  <EmployeeName>sample string 1</EmployeeName>
  <FromDateTime>sample string 5</FromDateTime>
  <FromFullDayIND>true</FromFullDayIND>
  <FromHalfDayIND>true</FromHalfDayIND>
  <FromStartTime>sample string 14</FromStartTime>
  <HoursValue>26</HoursValue>
  <LeaveApplicationID>16</LeaveApplicationID>
  <LeaveStatus>sample string 22</LeaveStatus>
  <LeaveTypeId>19</LeaveTypeId>
  <LocationID>32</LocationID>
  <LoginEmployeeID>17</LoginEmployeeID>
  <MessageToPeers>sample string 11</MessageToPeers>
  <NoofDays>7</NoofDays>
  <NotifyEmployeeList>
    <LeaveNotifyEmployeesViewModel>
      <EmailIds>sample string 4</EmailIds>
      <LeaveApplicationID>2</LeaveApplicationID>
      <NotifyTypeId>1</NotifyTypeId>
      <PersonID>3</PersonID>
    </LeaveNotifyEmployeesViewModel>
    <LeaveNotifyEmployeesViewModel>
      <EmailIds>sample string 4</EmailIds>
      <LeaveApplicationID>2</LeaveApplicationID>
      <NotifyTypeId>1</NotifyTypeId>
      <PersonID>3</PersonID>
    </LeaveNotifyEmployeesViewModel>
  </NotifyEmployeeList>
  <NotifyEmployees>sample string 13</NotifyEmployees>
  <NotifyPeersIND>true</NotifyPeersIND>
  <PersonId>20</PersonId>
  <ReasonforLeave>sample string 8</ReasonforLeave>
  <SenderId>35</SenderId>
  <Status>sample string 10</Status>
  <ToDateTime>sample string 6</ToDateTime>
  <ToEndTime>sample string 15</ToEndTime>
  <ToFullDayIND>true</ToFullDayIND>
  <ToHalfDayIND>true</ToHalfDayIND>
  <Type>sample string 4</Type>
  <Userconfirmation>true</Userconfirmation>
</EmployeeLeaveApplicationDetailsViewModel>

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.