POST api/Hrms/LeaveRequest
Request Information
URI Parameters
None.
Body Parameters
IP_LeaveRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| fromDate | date |
None. |
|
| toDate | date |
None. |
|
| leaveType | integer |
None. |
|
| reason | string |
None. |
|
| ishalfday | boolean |
None. |
|
| sectionName | string |
None. |
|
| otherReason | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"fromDate": "2026-09-16T10:52:52.2931266+05:30",
"toDate": "2026-09-16T10:52:52.2931266+05:30",
"leaveType": 3,
"reason": "sample string 4",
"ishalfday": true,
"sectionName": "sample string 6",
"otherReason": "sample string 7"
}
application/xml, text/xml
Sample:
<IP_LeaveRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Entity.Models.Input_class"> <fromDate>2026-09-16T10:52:52.2931266+05:30</fromDate> <ishalfday>true</ishalfday> <leaveType>3</leaveType> <otherReason>sample string 7</otherReason> <reason>sample string 4</reason> <sectionName>sample string 6</sectionName> <toDate>2026-09-16T10:52:52.2931266+05:30</toDate> </IP_LeaveRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |