POST api/EmployeeLeave/Apply

Request Information

URI Parameters

None.

Body Parameters

EmpLeaveApplyRequest
NameDescriptionTypeAdditional information
EmpId

integer

None.

CompanyId

integer

None.

BranchId

integer

None.

LeaveTypeId

integer

None.

StartDate

date

None.

EndDate

date

None.

Remark

string

None.

Request Formats

application/json, text/json

Sample:
{
  "EmpId": 1,
  "CompanyId": 1,
  "BranchId": 1,
  "LeaveTypeId": 2,
  "StartDate": "2026-11-02T16:49:04.8101163+04:00",
  "EndDate": "2026-11-02T16:49:04.8112351+04:00",
  "Remark": "sample string 5"
}

application/xml, text/xml

Sample:
<EmpLeaveApplyRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SeaShellHR.Models">
  <BranchId>1</BranchId>
  <CompanyId>1</CompanyId>
  <EmpId>1</EmpId>
  <EndDate>2026-11-02T16:49:04.8112351+04:00</EndDate>
  <LeaveTypeId>2</LeaveTypeId>
  <Remark>sample string 5</Remark>
  <StartDate>2026-11-02T16:49:04.8101163+04:00</StartDate>
</EmpLeaveApplyRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.