POST api/Leave/GeEmployeeHolidays
Request Information
URI Parameters
None.
Body Parameters
HolidayViewModelName | Description | Type | Additional information |
---|---|---|---|
HolidayID | integer |
None. |
|
HolidayCalendarID | integer |
None. |
|
HolidayName | string |
None. |
|
Description | string |
None. |
|
HolidayType | string |
None. |
|
Day | integer |
None. |
|
RecurPeriod | integer |
None. |
|
Recurpattern | string |
None. |
|
FulldayInd | boolean |
None. |
|
HolidayFromTime | time interval |
None. |
|
HolidayToTime | time interval |
None. |
|
StartDay | date |
None. |
|
StatusCode | string |
None. |
|
Lastupdatedby | string |
None. |
|
LastupdatedDT | date |
None. |
|
IsOptionalInd | boolean |
None. |
|
GroupId | string |
None. |
|
calendar | CalendarViewModel |
None. |
|
StartDayText | string |
None. |
|
LocationId | integer |
None. |
|
Weekday | string |
None. |
|
Month | integer |
None. |
|
Date | string |
None. |
|
Year | integer |
None. |
|
EmployeeID | integer |
None. |
|
SNo | integer |
None. |
|
HolidayImage | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "HolidayID": 1, "HolidayCalendarID": 2, "HolidayName": "sample string 3", "Description": "sample string 4", "HolidayType": "sample string 5", "Day": 6, "RecurPeriod": 7, "Recurpattern": "sample string 8", "FulldayInd": true, "HolidayFromTime": "00:00:00.1234567", "HolidayToTime": "00:00:00.1234567", "StartDay": "2025-04-05T00:11:23.6211633+05:30", "StatusCode": "sample string 11", "Lastupdatedby": "sample string 12", "LastupdatedDT": "2025-04-05T00:11:23.6211633+05:30", "IsOptionalInd": true, "GroupId": "sample string 14", "calendar": { "holidayCal": { "HolidayCalendarID": 1, "CalendarID": 2, "Year": 3, "LocationId": 4 }, "CalendarID": 1, "Name": "sample string 2", "YearStartsFrom": 3, "DayStartTime": "00:00:00.1234567", "DayEndTime": "00:00:00.1234567", "Duration": 4.0, "FlexiHoursIND": true, "ShiftToleranceLimit": 6, "IsNextDayIND": true, "IsDefaultShift": true, "SelectedWeekoffsList": [ { "WeekoffId": 1, "ShiftweekoffsId": 2, "ShiftID": 3 }, { "WeekoffId": 1, "ShiftweekoffsId": 2, "ShiftID": 3 } ] }, "StartDayText": "sample string 15", "LocationId": 16, "Weekday": "sample string 17", "Month": 18, "Date": "sample string 19", "Year": 20, "EmployeeID": 21, "SNo": 22, "HolidayImage": "sample string 23" }
application/xml, text/xml
Sample:
<HolidayViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HRMSWebAPI.Transaction.Leave"> <Date>sample string 19</Date> <EmployeeID>21</EmployeeID> <HolidayCalendarID>2</HolidayCalendarID> <HolidayImage>sample string 23</HolidayImage> <HolidayName>sample string 3</HolidayName> <LocationId>16</LocationId> <Month>18</Month> <SNo>22</SNo> <StartDayText>sample string 15</StartDayText> <Year>20</Year> <calendar> <CalendarID>1</CalendarID> <DayEndTime>PT0.1234567S</DayEndTime> <DayStartTime>PT0.1234567S</DayStartTime> <Duration>4</Duration> <FlexiHoursIND>true</FlexiHoursIND> <IsDefaultShift>true</IsDefaultShift> <Name>sample string 2</Name> <SelectedWeekoffsList> <ShiftPlannertWeekoffsViewModel> <ShiftID>3</ShiftID> <ShiftweekoffsId>2</ShiftweekoffsId> <WeekoffId>1</WeekoffId> </ShiftPlannertWeekoffsViewModel> <ShiftPlannertWeekoffsViewModel> <ShiftID>3</ShiftID> <ShiftweekoffsId>2</ShiftweekoffsId> <WeekoffId>1</WeekoffId> </ShiftPlannertWeekoffsViewModel> </SelectedWeekoffsList> <ShiftToleranceLimit>6</ShiftToleranceLimit> <YearStartsFrom>3</YearStartsFrom> <holidayCal> <CalendarID>2</CalendarID> <HolidayCalendarID>1</HolidayCalendarID> <LocationId>4</LocationId> <Year>3</Year> </holidayCal> </calendar> </HolidayViewModel>
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.