POST api/genDutyRoaster/Save

Request Information

URI Parameters

None.

Body Parameters

genDutyRoaster
NameDescriptionTypeAdditional information
ActionTypeId

integer

None.

AlteredOn

date

None.

CreatedOn

date

None.

FromDate

date

None.

ToDate

date

None.

DepartmentId

integer

None.

OrganizationId

integer

None.

CompanyId

integer

None.

EmployeeCategoryId

integer

None.

SectionId

integer

None.

ShiftId

integer

None.

AlteredById

integer

None.

CreatedById

integer

None.

DutyRoasterId

integer

None.

LocationId

integer

None.

PartyLocationId

integer

None.

UserLogId

integer

None.

Description

string

None.

GenDutyRoasterDetailsList

Collection of genDutyRoasterDetail

None.

DutyRoasterGroupsList

Collection of DutyRoasterGroups

None.

Request Formats

application/json, text/json

Sample:
{
  "ActionTypeId": 1,
  "AlteredOn": "2025-10-29T13:11:30.0833311+05:00",
  "CreatedOn": "2025-10-29T13:11:30.0833311+05:00",
  "FromDate": "2025-10-29T13:11:30.0833311+05:00",
  "ToDate": "2025-10-29T13:11:30.0833311+05:00",
  "DepartmentId": 6,
  "OrganizationId": 7,
  "CompanyId": 8,
  "EmployeeCategoryId": 9,
  "SectionId": 10,
  "ShiftId": 11,
  "AlteredById": 12,
  "CreatedById": 13,
  "DutyRoasterId": 14,
  "LocationId": 15,
  "PartyLocationId": 16,
  "UserLogId": 17,
  "Description": "sample string 18",
  "GenDutyRoasterDetailsList": [
    {
      "ActionTypeId": 1,
      "IsOffDuty": true,
      "IsOnDuty": true,
      "AbsentAfterInDateTime": "2025-10-29T13:11:30.0833311+05:00",
      "AbsentBeforeOutDateTime": "2025-10-29T13:11:30.0833311+05:00",
      "AlteredOn": "2025-10-29T13:11:30.0833311+05:00",
      "CreatedOn": "2025-10-29T13:11:30.0833311+05:00",
      "DutyDate": "2025-10-29T13:11:30.0833311+05:00",
      "EndTime": "2025-10-29T13:11:30.0833311+05:00",
      "GraceInDateTime": "2025-10-29T13:11:30.0833311+05:00",
      "GraceOutDateTime": "2025-10-29T13:11:30.0833311+05:00",
      "GraceOutEndDateTime": "2025-10-29T13:11:30.0833311+05:00",
      "GraceOutStartDateTime": "2025-10-29T13:11:30.0833311+05:00",
      "HalfDayInEndDateTime": "2025-10-29T13:11:30.0833311+05:00",
      "HalfDayInStartDateTime": "2025-10-29T13:11:30.0833311+05:00",
      "HalfDayOutEndDateTime": "2025-10-29T13:11:30.0833311+05:00",
      "HalfDayOutStartDateTime": "2025-10-29T13:11:30.0833311+05:00",
      "RangeInDateTime": "2025-10-29T13:11:30.0833311+05:00",
      "RangeOutDateTime": "2025-10-29T13:11:30.0833311+05:00",
      "ShortLeaveInEndDateTime": "2025-10-29T13:11:30.0833311+05:00",
      "ShortLeaveInStartDateTime": "2025-10-29T13:11:30.0833311+05:00",
      "ShortLeaveOutEndDateTime": "2025-10-29T13:11:30.0833311+05:00",
      "ShortLeaveOutStartDateTime": "2025-10-29T13:11:30.0833311+05:00",
      "StartTime": "2025-10-29T13:11:30.0833311+05:00",
      "ShiftId": 4,
      "ShiftTimingId": 5,
      "AlteredById": 6,
      "CreatedById": 7,
      "DutyRoasterDetailId": 8,
      "DutyRoasterDetailLineId": 9,
      "DutyRoasterId": 10,
      "EmployeeHistoryId": 11,
      "EmployeeId": 12,
      "UserLogId": 13,
      "EmployeeGroupId": 14,
      "WeekDayName": "sample string 15",
      "ShiftShortName": "sample string 16",
      "IsHoliday": true
    },
    {
      "ActionTypeId": 1,
      "IsOffDuty": true,
      "IsOnDuty": true,
      "AbsentAfterInDateTime": "2025-10-29T13:11:30.0833311+05:00",
      "AbsentBeforeOutDateTime": "2025-10-29T13:11:30.0833311+05:00",
      "AlteredOn": "2025-10-29T13:11:30.0833311+05:00",
      "CreatedOn": "2025-10-29T13:11:30.0833311+05:00",
      "DutyDate": "2025-10-29T13:11:30.0833311+05:00",
      "EndTime": "2025-10-29T13:11:30.0833311+05:00",
      "GraceInDateTime": "2025-10-29T13:11:30.0833311+05:00",
      "GraceOutDateTime": "2025-10-29T13:11:30.0833311+05:00",
      "GraceOutEndDateTime": "2025-10-29T13:11:30.0833311+05:00",
      "GraceOutStartDateTime": "2025-10-29T13:11:30.0833311+05:00",
      "HalfDayInEndDateTime": "2025-10-29T13:11:30.0833311+05:00",
      "HalfDayInStartDateTime": "2025-10-29T13:11:30.0833311+05:00",
      "HalfDayOutEndDateTime": "2025-10-29T13:11:30.0833311+05:00",
      "HalfDayOutStartDateTime": "2025-10-29T13:11:30.0833311+05:00",
      "RangeInDateTime": "2025-10-29T13:11:30.0833311+05:00",
      "RangeOutDateTime": "2025-10-29T13:11:30.0833311+05:00",
      "ShortLeaveInEndDateTime": "2025-10-29T13:11:30.0833311+05:00",
      "ShortLeaveInStartDateTime": "2025-10-29T13:11:30.0833311+05:00",
      "ShortLeaveOutEndDateTime": "2025-10-29T13:11:30.0833311+05:00",
      "ShortLeaveOutStartDateTime": "2025-10-29T13:11:30.0833311+05:00",
      "StartTime": "2025-10-29T13:11:30.0833311+05:00",
      "ShiftId": 4,
      "ShiftTimingId": 5,
      "AlteredById": 6,
      "CreatedById": 7,
      "DutyRoasterDetailId": 8,
      "DutyRoasterDetailLineId": 9,
      "DutyRoasterId": 10,
      "EmployeeHistoryId": 11,
      "EmployeeId": 12,
      "UserLogId": 13,
      "EmployeeGroupId": 14,
      "WeekDayName": "sample string 15",
      "ShiftShortName": "sample string 16",
      "IsHoliday": true
    }
  ],
  "DutyRoasterGroupsList": [
    {
      "Id": 1,
      "EmployeeGroupId": 2,
      "ShiftId": 3,
      "DutyRoasterId": 4,
      "WeekDayId": 5
    },
    {
      "Id": 1,
      "EmployeeGroupId": 2,
      "ShiftId": 3,
      "DutyRoasterId": 4,
      "WeekDayId": 5
    }
  ]
}

application/xml, text/xml

Sample:
<genDutyRoaster xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Architecture.Model.HRM.AttendanceManagement">
  <ActionTypeId>1</ActionTypeId>
  <AlteredById>12</AlteredById>
  <AlteredOn>2025-10-29T13:11:30.0833311+05:00</AlteredOn>
  <CompanyId>8</CompanyId>
  <CreatedById>13</CreatedById>
  <CreatedOn>2025-10-29T13:11:30.0833311+05:00</CreatedOn>
  <DepartmentId>6</DepartmentId>
  <Description>sample string 18</Description>
  <DutyRoasterGroupsList>
    <DutyRoasterGroups>
      <DutyRoasterId>4</DutyRoasterId>
      <EmployeeGroupId>2</EmployeeGroupId>
      <Id>1</Id>
      <ShiftId>3</ShiftId>
      <WeekDayId>5</WeekDayId>
    </DutyRoasterGroups>
    <DutyRoasterGroups>
      <DutyRoasterId>4</DutyRoasterId>
      <EmployeeGroupId>2</EmployeeGroupId>
      <Id>1</Id>
      <ShiftId>3</ShiftId>
      <WeekDayId>5</WeekDayId>
    </DutyRoasterGroups>
  </DutyRoasterGroupsList>
  <DutyRoasterId>14</DutyRoasterId>
  <EmployeeCategoryId>9</EmployeeCategoryId>
  <FromDate>2025-10-29T13:11:30.0833311+05:00</FromDate>
  <GenDutyRoasterDetailsList>
    <genDutyRoasterDetail>
      <AbsentAfterInDateTime>2025-10-29T13:11:30.0833311+05:00</AbsentAfterInDateTime>
      <AbsentBeforeOutDateTime>2025-10-29T13:11:30.0833311+05:00</AbsentBeforeOutDateTime>
      <ActionTypeId>1</ActionTypeId>
      <AlteredById>6</AlteredById>
      <AlteredOn>2025-10-29T13:11:30.0833311+05:00</AlteredOn>
      <CreatedById>7</CreatedById>
      <CreatedOn>2025-10-29T13:11:30.0833311+05:00</CreatedOn>
      <DutyDate>2025-10-29T13:11:30.0833311+05:00</DutyDate>
      <DutyRoasterDetailId>8</DutyRoasterDetailId>
      <DutyRoasterDetailLineId>9</DutyRoasterDetailLineId>
      <DutyRoasterId>10</DutyRoasterId>
      <EmployeeGroupId>14</EmployeeGroupId>
      <EmployeeHistoryId>11</EmployeeHistoryId>
      <EmployeeId>12</EmployeeId>
      <EndTime>2025-10-29T13:11:30.0833311+05:00</EndTime>
      <GraceInDateTime>2025-10-29T13:11:30.0833311+05:00</GraceInDateTime>
      <GraceOutDateTime>2025-10-29T13:11:30.0833311+05:00</GraceOutDateTime>
      <GraceOutEndDateTime>2025-10-29T13:11:30.0833311+05:00</GraceOutEndDateTime>
      <GraceOutStartDateTime>2025-10-29T13:11:30.0833311+05:00</GraceOutStartDateTime>
      <HalfDayInEndDateTime>2025-10-29T13:11:30.0833311+05:00</HalfDayInEndDateTime>
      <HalfDayInStartDateTime>2025-10-29T13:11:30.0833311+05:00</HalfDayInStartDateTime>
      <HalfDayOutEndDateTime>2025-10-29T13:11:30.0833311+05:00</HalfDayOutEndDateTime>
      <HalfDayOutStartDateTime>2025-10-29T13:11:30.0833311+05:00</HalfDayOutStartDateTime>
      <IsHoliday>true</IsHoliday>
      <IsOffDuty>true</IsOffDuty>
      <IsOnDuty>true</IsOnDuty>
      <RangeInDateTime>2025-10-29T13:11:30.0833311+05:00</RangeInDateTime>
      <RangeOutDateTime>2025-10-29T13:11:30.0833311+05:00</RangeOutDateTime>
      <ShiftId>4</ShiftId>
      <ShiftShortName>sample string 16</ShiftShortName>
      <ShiftTimingId>5</ShiftTimingId>
      <ShortLeaveInEndDateTime>2025-10-29T13:11:30.0833311+05:00</ShortLeaveInEndDateTime>
      <ShortLeaveInStartDateTime>2025-10-29T13:11:30.0833311+05:00</ShortLeaveInStartDateTime>
      <ShortLeaveOutEndDateTime>2025-10-29T13:11:30.0833311+05:00</ShortLeaveOutEndDateTime>
      <ShortLeaveOutStartDateTime>2025-10-29T13:11:30.0833311+05:00</ShortLeaveOutStartDateTime>
      <StartTime>2025-10-29T13:11:30.0833311+05:00</StartTime>
      <UserLogId>13</UserLogId>
      <WeekDayName>sample string 15</WeekDayName>
    </genDutyRoasterDetail>
    <genDutyRoasterDetail>
      <AbsentAfterInDateTime>2025-10-29T13:11:30.0833311+05:00</AbsentAfterInDateTime>
      <AbsentBeforeOutDateTime>2025-10-29T13:11:30.0833311+05:00</AbsentBeforeOutDateTime>
      <ActionTypeId>1</ActionTypeId>
      <AlteredById>6</AlteredById>
      <AlteredOn>2025-10-29T13:11:30.0833311+05:00</AlteredOn>
      <CreatedById>7</CreatedById>
      <CreatedOn>2025-10-29T13:11:30.0833311+05:00</CreatedOn>
      <DutyDate>2025-10-29T13:11:30.0833311+05:00</DutyDate>
      <DutyRoasterDetailId>8</DutyRoasterDetailId>
      <DutyRoasterDetailLineId>9</DutyRoasterDetailLineId>
      <DutyRoasterId>10</DutyRoasterId>
      <EmployeeGroupId>14</EmployeeGroupId>
      <EmployeeHistoryId>11</EmployeeHistoryId>
      <EmployeeId>12</EmployeeId>
      <EndTime>2025-10-29T13:11:30.0833311+05:00</EndTime>
      <GraceInDateTime>2025-10-29T13:11:30.0833311+05:00</GraceInDateTime>
      <GraceOutDateTime>2025-10-29T13:11:30.0833311+05:00</GraceOutDateTime>
      <GraceOutEndDateTime>2025-10-29T13:11:30.0833311+05:00</GraceOutEndDateTime>
      <GraceOutStartDateTime>2025-10-29T13:11:30.0833311+05:00</GraceOutStartDateTime>
      <HalfDayInEndDateTime>2025-10-29T13:11:30.0833311+05:00</HalfDayInEndDateTime>
      <HalfDayInStartDateTime>2025-10-29T13:11:30.0833311+05:00</HalfDayInStartDateTime>
      <HalfDayOutEndDateTime>2025-10-29T13:11:30.0833311+05:00</HalfDayOutEndDateTime>
      <HalfDayOutStartDateTime>2025-10-29T13:11:30.0833311+05:00</HalfDayOutStartDateTime>
      <IsHoliday>true</IsHoliday>
      <IsOffDuty>true</IsOffDuty>
      <IsOnDuty>true</IsOnDuty>
      <RangeInDateTime>2025-10-29T13:11:30.0833311+05:00</RangeInDateTime>
      <RangeOutDateTime>2025-10-29T13:11:30.0833311+05:00</RangeOutDateTime>
      <ShiftId>4</ShiftId>
      <ShiftShortName>sample string 16</ShiftShortName>
      <ShiftTimingId>5</ShiftTimingId>
      <ShortLeaveInEndDateTime>2025-10-29T13:11:30.0833311+05:00</ShortLeaveInEndDateTime>
      <ShortLeaveInStartDateTime>2025-10-29T13:11:30.0833311+05:00</ShortLeaveInStartDateTime>
      <ShortLeaveOutEndDateTime>2025-10-29T13:11:30.0833311+05:00</ShortLeaveOutEndDateTime>
      <ShortLeaveOutStartDateTime>2025-10-29T13:11:30.0833311+05:00</ShortLeaveOutStartDateTime>
      <StartTime>2025-10-29T13:11:30.0833311+05:00</StartTime>
      <UserLogId>13</UserLogId>
      <WeekDayName>sample string 15</WeekDayName>
    </genDutyRoasterDetail>
  </GenDutyRoasterDetailsList>
  <LocationId>15</LocationId>
  <OrganizationId>7</OrganizationId>
  <PartyLocationId>16</PartyLocationId>
  <SectionId>10</SectionId>
  <ShiftId>11</ShiftId>
  <ToDate>2025-10-29T13:11:30.0833311+05:00</ToDate>
  <UserLogId>17</UserLogId>
</genDutyRoaster>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'genDutyRoaster'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.