POST api/Leave/PostCancelLeave
Request Information
URI Parameters
None.
Body Parameters
LeaveApplicationDayWiseSummaryViewModelName | Description | Type | Additional information |
---|---|---|---|
LeaveApplicationDayWiseSummaryID | integer |
None. |
|
LeaveApplicationID | integer |
None. |
|
PersonId | integer |
None. |
|
LeaveTypeId | integer |
None. |
|
LeaveDate | date |
None. |
|
NoofDays | decimal number |
None. |
|
FullDayIND | boolean |
None. |
|
Day | integer |
None. |
|
CancelList | Collection of UserDefinedViewModel |
None. |
|
Options | Collection of string |
None. |
|
EmployeeID | integer |
None. |
|
Comments | string |
None. |
|
LoginEmployeeID | integer |
None. |
|
DocumentPath | string |
None. |
|
DocumentName | string |
None. |
|
Status | string |
None. |
|
SingleDayIND | boolean |
None. |
|
AllDayIND | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{ "LeaveApplicationDayWiseSummaryID": 1, "LeaveApplicationID": 2, "PersonId": 3, "LeaveTypeId": 4, "LeaveDate": "2025-04-04T23:55:45.0515982+05:30", "NoofDays": 6.0, "FullDayIND": true, "Day": 8, "CancelList": [ { "ApplicablePersonID": 1, "Value": "sample string 2", "FieldTypeID": 3, "DateValue": "2025-04-04T23:55:45.0515982+05:30", "FieldName": "sample string 5", "Option": [ "sample string 1", "sample string 2" ], "ReferenceUDFID": 6 }, { "ApplicablePersonID": 1, "Value": "sample string 2", "FieldTypeID": 3, "DateValue": "2025-04-04T23:55:45.0515982+05:30", "FieldName": "sample string 5", "Option": [ "sample string 1", "sample string 2" ], "ReferenceUDFID": 6 } ], "Options": [ "sample string 1", "sample string 2" ], "EmployeeID": 9, "Comments": "sample string 10", "LoginEmployeeID": 11, "DocumentPath": "sample string 12", "DocumentName": "sample string 13", "Status": "sample string 14", "SingleDayIND": true, "AllDayIND": true }
application/xml, text/xml
Sample:
<LeaveApplicationDayWiseSummaryViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HRMSWebAPI.Transaction.Leave"> <AllDayIND>true</AllDayIND> <CancelList xmlns:d2p1="http://schemas.datacontract.org/2004/07/HRMSWebAPI.Transaction.Employee"> <d2p1:UserDefinedViewModel> <d2p1:ApplicablePersonID>1</d2p1:ApplicablePersonID> <d2p1:DateValue>2025-04-04T23:55:45.0515982+05:30</d2p1:DateValue> <d2p1:FieldName>sample string 5</d2p1:FieldName> <d2p1:FieldTypeID>3</d2p1:FieldTypeID> <d2p1:Option xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:string>sample string 1</d4p1:string> <d4p1:string>sample string 2</d4p1:string> </d2p1:Option> <d2p1:ReferenceUDFID>6</d2p1:ReferenceUDFID> <d2p1:Value>sample string 2</d2p1:Value> </d2p1:UserDefinedViewModel> <d2p1:UserDefinedViewModel> <d2p1:ApplicablePersonID>1</d2p1:ApplicablePersonID> <d2p1:DateValue>2025-04-04T23:55:45.0515982+05:30</d2p1:DateValue> <d2p1:FieldName>sample string 5</d2p1:FieldName> <d2p1:FieldTypeID>3</d2p1:FieldTypeID> <d2p1:Option xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:string>sample string 1</d4p1:string> <d4p1:string>sample string 2</d4p1:string> </d2p1:Option> <d2p1:ReferenceUDFID>6</d2p1:ReferenceUDFID> <d2p1:Value>sample string 2</d2p1:Value> </d2p1:UserDefinedViewModel> </CancelList> <Comments>sample string 10</Comments> <Day>8</Day> <DocumentName>sample string 13</DocumentName> <DocumentPath>sample string 12</DocumentPath> <EmployeeID>9</EmployeeID> <FullDayIND>true</FullDayIND> <LeaveApplicationDayWiseSummaryID>1</LeaveApplicationDayWiseSummaryID> <LeaveApplicationID>2</LeaveApplicationID> <LeaveDate>2025-04-04T23:55:45.0515982+05:30</LeaveDate> <LeaveTypeId>4</LeaveTypeId> <LoginEmployeeID>11</LoginEmployeeID> <NoofDays>6</NoofDays> <Options xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:string>sample string 1</d2p1:string> <d2p1:string>sample string 2</d2p1:string> </Options> <PersonId>3</PersonId> <SingleDayIND>true</SingleDayIND> <Status>sample string 14</Status> </LeaveApplicationDayWiseSummaryViewModel>
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.