POST api/GetEmployeeRostersBetweenDates

Get an Employee's roster roles between two given dates

Request Information

Payload

NamePayload ParametersAdditional information
Parameters int Personnel_Number
DateTime Start_Date
DateTime End_Date

None.

Response Information

Response body formats

application/json, text/json

Sample:
[
  {
    "PersonnelID": 1,
    "RosterDate": "2025-05-30T04:08:59.200874+01:00",
    "StartTime": "00:00:00.1234567",
    "EndTime": "00:00:00.1234567",
    "RoleHours": 5.0,
    "RoleDescription": "sample string 6",
    "Site": "sample string 7"
  },
  {
    "PersonnelID": 1,
    "RosterDate": "2025-05-30T04:08:59.200874+01:00",
    "StartTime": "00:00:00.1234567",
    "EndTime": "00:00:00.1234567",
    "RoleHours": 5.0,
    "RoleDescription": "sample string 6",
    "Site": "sample string 7"
  },
  {
    "PersonnelID": 1,
    "RosterDate": "2025-05-30T04:08:59.200874+01:00",
    "StartTime": "00:00:00.1234567",
    "EndTime": "00:00:00.1234567",
    "RoleHours": 5.0,
    "RoleDescription": "sample string 6",
    "Site": "sample string 7"
  }
]

text/html

Sample:
[{"PersonnelID":1,"RosterDate":"2025-05-30T04:08:59.200874+01:00","StartTime":"00:00:00.1234567","EndTime":"00:00:00.1234567","RoleHours":5.0,"RoleDescription":"sample string 6","Site":"sample string 7"},{"PersonnelID":1,"RosterDate":"2025-05-30T04:08:59.200874+01:00","StartTime":"00:00:00.1234567","EndTime":"00:00:00.1234567","RoleHours":5.0,"RoleDescription":"sample string 6","Site":"sample string 7"},{"PersonnelID":1,"RosterDate":"2025-05-30T04:08:59.200874+01:00","StartTime":"00:00:00.1234567","EndTime":"00:00:00.1234567","RoleHours":5.0,"RoleDescription":"sample string 6","Site":"sample string 7"}]

application/xml, text/xml

Sample:
<ArrayOfEmployeeRosterDates xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Carval.SelfService.BLL.Employee">
  <EmployeeRosterDates>
    <EndTime>PT0.1234567S</EndTime>
    <PersonnelID>1</PersonnelID>
    <RoleDescription>sample string 6</RoleDescription>
    <RoleHours>5</RoleHours>
    <RosterDate>2025-05-30T04:08:59.200874+01:00</RosterDate>
    <Site>sample string 7</Site>
    <StartTime>PT0.1234567S</StartTime>
  </EmployeeRosterDates>
  <EmployeeRosterDates>
    <EndTime>PT0.1234567S</EndTime>
    <PersonnelID>1</PersonnelID>
    <RoleDescription>sample string 6</RoleDescription>
    <RoleHours>5</RoleHours>
    <RosterDate>2025-05-30T04:08:59.200874+01:00</RosterDate>
    <Site>sample string 7</Site>
    <StartTime>PT0.1234567S</StartTime>
  </EmployeeRosterDates>
  <EmployeeRosterDates>
    <EndTime>PT0.1234567S</EndTime>
    <PersonnelID>1</PersonnelID>
    <RoleDescription>sample string 6</RoleDescription>
    <RoleHours>5</RoleHours>
    <RosterDate>2025-05-30T04:08:59.200874+01:00</RosterDate>
    <Site>sample string 7</Site>
    <StartTime>PT0.1234567S</StartTime>
  </EmployeeRosterDates>
</ArrayOfEmployeeRosterDates>