POST api/Leave/AddLeave

Request Information

URI Parameters

None.

Body Parameters

LeaveInsertModel
NameDescriptionTypeAdditional information
CompanyId

integer

None.

BranchId

integer

None.

EmpId

integer

None.

LeaveTypeId

integer

None.

StartDate

date

None.

EndDate

date

None.

Remark

string

None.

Request Formats

application/json, text/json

Sample:
{
  "CompanyId": 1,
  "BranchId": 2,
  "EmpId": 3,
  "LeaveTypeId": 4,
  "StartDate": "2026-07-04T18:03:02.9265432+04:00",
  "EndDate": "2026-07-04T18:03:02.9265432+04:00",
  "Remark": "sample string 7"
}

application/xml, text/xml

Sample:
<LeaveInsertModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SeaShellHR.Models">
  <BranchId>2</BranchId>
  <CompanyId>1</CompanyId>
  <EmpId>3</EmpId>
  <EndDate>2026-07-04T18:03:02.9265432+04:00</EndDate>
  <LeaveTypeId>4</LeaveTypeId>
  <Remark>sample string 7</Remark>
  <StartDate>2026-07-04T18:03:02.9265432+04:00</StartDate>
</LeaveInsertModel>

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.