GET Api/Resource/Request/Swap/GetScheduledInfoForResource?resourceUserID={resourceUserID}&requestedDate={requestedDate}&scheduledTasks={scheduledTasks}&scheduledExtraCodes={scheduledExtraCodes}&scheduledNightShifts={scheduledNightShifts}

Get the schedulings of a resource

Request Information

URI Parameters

NameDescriptionTypeAdditional information
resourceUserID

UserID of other resource

integer

Required

requestedDate

Date to get the schedulings for

date

Required

scheduledTasks

Get the tasks

boolean

Required

scheduledExtraCodes

Get the extra codes

boolean

Required

scheduledNightShifts

Get night shifts

boolean

Required

Body Parameters

None.

Response Information

Resource Description

ScheduledTasksOrExtraCodes
NameDescriptionTypeAdditional information
ScheduledTasks

Collection of ScheduledTaskInfo

None.

ScheduledExtraCodes

Collection of ScheduledExtraCodeInfo

None.

Response Formats

application/json, text/json

Sample:
{
  "ScheduledTasks": [
    {
      "Task": {
        "Customer": {
          "Details1": "sample string 1",
          "UserID": 3,
          "ID": 5,
          "Details2": "sample string 2",
          "Email": "sample string 4",
          "Name": "sample string 6",
          "BeginDates": [
            "2024-12-22T07:37:12.3372321+01:00",
            "2024-12-22T07:37:12.3372321+01:00"
          ],
          "EndDates": [
            "2024-12-22T07:37:12.3372321+01:00",
            "2024-12-22T07:37:12.3372321+01:00"
          ]
        },
        "ID": 6,
        "Location": {
          "Details1": "sample string 1",
          "ID": 3,
          "Details2": "sample string 2",
          "Name": "sample string 4"
        },
        "Name": "sample string 7",
        "Color": 1,
        "BeginTime": "sample string 2",
        "EndTime": "sample string 3",
        "Details1": "sample string 4",
        "Details2": "sample string 5"
      },
      "SchedulingID": 2,
      "PlannerComment": "sample string 1",
      "Date": "2024-12-22T07:37:12.3372321+01:00",
      "BeginTime": "2024-12-22T07:37:12.3372321+01:00",
      "EndTime": "2024-12-22T07:37:12.3372321+01:00",
      "AcknowledgedID": 6
    },
    {
      "Task": {
        "Customer": {
          "Details1": "sample string 1",
          "UserID": 3,
          "ID": 5,
          "Details2": "sample string 2",
          "Email": "sample string 4",
          "Name": "sample string 6",
          "BeginDates": [
            "2024-12-22T07:37:12.3372321+01:00",
            "2024-12-22T07:37:12.3372321+01:00"
          ],
          "EndDates": [
            "2024-12-22T07:37:12.3372321+01:00",
            "2024-12-22T07:37:12.3372321+01:00"
          ]
        },
        "ID": 6,
        "Location": {
          "Details1": "sample string 1",
          "ID": 3,
          "Details2": "sample string 2",
          "Name": "sample string 4"
        },
        "Name": "sample string 7",
        "Color": 1,
        "BeginTime": "sample string 2",
        "EndTime": "sample string 3",
        "Details1": "sample string 4",
        "Details2": "sample string 5"
      },
      "SchedulingID": 2,
      "PlannerComment": "sample string 1",
      "Date": "2024-12-22T07:37:12.3372321+01:00",
      "BeginTime": "2024-12-22T07:37:12.3372321+01:00",
      "EndTime": "2024-12-22T07:37:12.3372321+01:00",
      "AcknowledgedID": 6
    }
  ],
  "ScheduledExtraCodes": [
    {
      "ExtraCode": null,
      "SchedulingID": 2,
      "PlannerComment": "sample string 1",
      "Date": "2024-12-22T07:37:12.3372321+01:00",
      "BeginTime": "2024-12-22T07:37:12.3372321+01:00",
      "EndTime": "2024-12-22T07:37:12.3372321+01:00",
      "AcknowledgedID": 6
    },
    {
      "ExtraCode": null,
      "SchedulingID": 2,
      "PlannerComment": "sample string 1",
      "Date": "2024-12-22T07:37:12.3372321+01:00",
      "BeginTime": "2024-12-22T07:37:12.3372321+01:00",
      "EndTime": "2024-12-22T07:37:12.3372321+01:00",
      "AcknowledgedID": 6
    }
  ]
}

application/xml, text/xml

Sample:
<ScheduledTasksOrExtraCodes xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Paralax.Cas.Web.WebServices.Models">
  <ScheduledTasks>
    <ScheduledTaskInfo>
      <SchedulingID>2</SchedulingID>
      <Date>2024-12-22T07:37:12.3372321+01:00</Date>
      <BeginTime>2024-12-22T07:37:12.3372321+01:00</BeginTime>
      <EndTime>2024-12-22T07:37:12.3372321+01:00</EndTime>
      <AcknowledgedID>6</AcknowledgedID>
      <Task>
        <ID>6</ID>
        <Name>sample string 7</Name>
        <Customer>
          <ID>5</ID>
          <Name>sample string 6</Name>
          <UserID>3</UserID>
          <Email>sample string 4</Email>
          <BeginDates xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:dateTime>2024-12-22T07:37:12.3372321+01:00</d6p1:dateTime>
            <d6p1:dateTime>2024-12-22T07:37:12.3372321+01:00</d6p1:dateTime>
          </BeginDates>
          <EndDates xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:dateTime>2024-12-22T07:37:12.3372321+01:00</d6p1:dateTime>
            <d6p1:dateTime>2024-12-22T07:37:12.3372321+01:00</d6p1:dateTime>
          </EndDates>
          <Details1>sample string 1</Details1>
          <Details2>sample string 2</Details2>
        </Customer>
        <Location>
          <ID>3</ID>
          <Name>sample string 4</Name>
          <Details1>sample string 1</Details1>
          <Details2>sample string 2</Details2>
        </Location>
        <Color>1</Color>
        <BeginTime>sample string 2</BeginTime>
        <EndTime>sample string 3</EndTime>
        <Details1>sample string 4</Details1>
        <Details2>sample string 5</Details2>
      </Task>
      <PlannerComment>sample string 1</PlannerComment>
    </ScheduledTaskInfo>
    <ScheduledTaskInfo>
      <SchedulingID>2</SchedulingID>
      <Date>2024-12-22T07:37:12.3372321+01:00</Date>
      <BeginTime>2024-12-22T07:37:12.3372321+01:00</BeginTime>
      <EndTime>2024-12-22T07:37:12.3372321+01:00</EndTime>
      <AcknowledgedID>6</AcknowledgedID>
      <Task>
        <ID>6</ID>
        <Name>sample string 7</Name>
        <Customer>
          <ID>5</ID>
          <Name>sample string 6</Name>
          <UserID>3</UserID>
          <Email>sample string 4</Email>
          <BeginDates xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:dateTime>2024-12-22T07:37:12.3372321+01:00</d6p1:dateTime>
            <d6p1:dateTime>2024-12-22T07:37:12.3372321+01:00</d6p1:dateTime>
          </BeginDates>
          <EndDates xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:dateTime>2024-12-22T07:37:12.3372321+01:00</d6p1:dateTime>
            <d6p1:dateTime>2024-12-22T07:37:12.3372321+01:00</d6p1:dateTime>
          </EndDates>
          <Details1>sample string 1</Details1>
          <Details2>sample string 2</Details2>
        </Customer>
        <Location>
          <ID>3</ID>
          <Name>sample string 4</Name>
          <Details1>sample string 1</Details1>
          <Details2>sample string 2</Details2>
        </Location>
        <Color>1</Color>
        <BeginTime>sample string 2</BeginTime>
        <EndTime>sample string 3</EndTime>
        <Details1>sample string 4</Details1>
        <Details2>sample string 5</Details2>
      </Task>
      <PlannerComment>sample string 1</PlannerComment>
    </ScheduledTaskInfo>
  </ScheduledTasks>
  <ScheduledExtraCodes>
    <ScheduledExtraCodeInfo>
      <SchedulingID>2</SchedulingID>
      <Date>2024-12-22T07:37:12.3372321+01:00</Date>
      <BeginTime>2024-12-22T07:37:12.3372321+01:00</BeginTime>
      <EndTime>2024-12-22T07:37:12.3372321+01:00</EndTime>
      <AcknowledgedID>6</AcknowledgedID>
      <ExtraCode i:nil="true" />
      <PlannerComment>sample string 1</PlannerComment>
    </ScheduledExtraCodeInfo>
    <ScheduledExtraCodeInfo>
      <SchedulingID>2</SchedulingID>
      <Date>2024-12-22T07:37:12.3372321+01:00</Date>
      <BeginTime>2024-12-22T07:37:12.3372321+01:00</BeginTime>
      <EndTime>2024-12-22T07:37:12.3372321+01:00</EndTime>
      <AcknowledgedID>6</AcknowledgedID>
      <ExtraCode i:nil="true" />
      <PlannerComment>sample string 1</PlannerComment>
    </ScheduledExtraCodeInfo>
  </ScheduledExtraCodes>
</ScheduledTasksOrExtraCodes>