POST Api/Resource/Request/Swap/FindQualifiedResources

Find resources we can swap with based on certain criteria.

Request Information

URI Parameters

None.

Body Parameters

FindQualifiedResourcesModel
NameDescriptionTypeAdditional information
ScheduledTasks

Collection of ScheduledTaskInfo

None.

SubmitterDate

date

None.

ReceiverDate

date

None.

LookWithinGroup

integer

None.

Group

string

None.

SearchOnQualifications

boolean

None.

SearchID

integer

None.

SearchPhrase

string

None.

CheckReceiverTasksWithInitiator

boolean

None.

Request 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-22T08:09:44.8640841+01:00",
            "2024-12-22T08:09:44.8640841+01:00"
          ],
          "EndDates": [
            "2024-12-22T08:09:44.8640841+01:00",
            "2024-12-22T08:09:44.8640841+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-22T08:09:44.8640841+01:00",
      "BeginTime": "2024-12-22T08:09:44.8640841+01:00",
      "EndTime": "2024-12-22T08:09:44.8640841+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-22T08:09:44.8640841+01:00",
            "2024-12-22T08:09:44.8640841+01:00"
          ],
          "EndDates": [
            "2024-12-22T08:09:44.8640841+01:00",
            "2024-12-22T08:09:44.8640841+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-22T08:09:44.8640841+01:00",
      "BeginTime": "2024-12-22T08:09:44.8640841+01:00",
      "EndTime": "2024-12-22T08:09:44.8640841+01:00",
      "AcknowledgedID": 6
    }
  ],
  "SubmitterDate": "2024-12-22T08:09:44.8640841+01:00",
  "ReceiverDate": "2024-12-22T08:09:44.8640841+01:00",
  "LookWithinGroup": 3,
  "Group": "sample string 4",
  "SearchOnQualifications": true,
  "SearchID": 1,
  "SearchPhrase": "sample string 6",
  "CheckReceiverTasksWithInitiator": true
}

application/xml, text/xml

Sample:
<FindQualifiedResourcesModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RostarCASWebAPI.Models.Requests">
  <CheckReceiverTasksWithInitiator>true</CheckReceiverTasksWithInitiator>
  <Group>sample string 4</Group>
  <LookWithinGroup>3</LookWithinGroup>
  <ReceiverDate>2024-12-22T08:09:44.8640841+01:00</ReceiverDate>
  <ScheduledTasks xmlns:d2p1="http://schemas.datacontract.org/2004/07/Paralax.Cas.Web.WebServices.Models">
    <d2p1:ScheduledTaskInfo>
      <d2p1:SchedulingID>2</d2p1:SchedulingID>
      <d2p1:Date>2024-12-22T08:09:44.8640841+01:00</d2p1:Date>
      <d2p1:BeginTime>2024-12-22T08:09:44.8640841+01:00</d2p1:BeginTime>
      <d2p1:EndTime>2024-12-22T08:09:44.8640841+01:00</d2p1:EndTime>
      <d2p1:AcknowledgedID>6</d2p1:AcknowledgedID>
      <d2p1:Task>
        <d2p1:ID>6</d2p1:ID>
        <d2p1:Name>sample string 7</d2p1:Name>
        <d2p1:Customer>
          <d2p1:ID>5</d2p1:ID>
          <d2p1:Name>sample string 6</d2p1:Name>
          <d2p1:UserID>3</d2p1:UserID>
          <d2p1:Email>sample string 4</d2p1:Email>
          <d2p1:BeginDates xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:dateTime>2024-12-22T08:09:44.8640841+01:00</d6p1:dateTime>
            <d6p1:dateTime>2024-12-22T08:09:44.8640841+01:00</d6p1:dateTime>
          </d2p1:BeginDates>
          <d2p1:EndDates xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:dateTime>2024-12-22T08:09:44.8640841+01:00</d6p1:dateTime>
            <d6p1:dateTime>2024-12-22T08:09:44.8640841+01:00</d6p1:dateTime>
          </d2p1:EndDates>
          <d2p1:Details1>sample string 1</d2p1:Details1>
          <d2p1:Details2>sample string 2</d2p1:Details2>
        </d2p1:Customer>
        <d2p1:Location>
          <d2p1:ID>3</d2p1:ID>
          <d2p1:Name>sample string 4</d2p1:Name>
          <d2p1:Details1>sample string 1</d2p1:Details1>
          <d2p1:Details2>sample string 2</d2p1:Details2>
        </d2p1:Location>
        <d2p1:Color>1</d2p1:Color>
        <d2p1:BeginTime>sample string 2</d2p1:BeginTime>
        <d2p1:EndTime>sample string 3</d2p1:EndTime>
        <d2p1:Details1>sample string 4</d2p1:Details1>
        <d2p1:Details2>sample string 5</d2p1:Details2>
      </d2p1:Task>
      <d2p1:PlannerComment>sample string 1</d2p1:PlannerComment>
    </d2p1:ScheduledTaskInfo>
    <d2p1:ScheduledTaskInfo>
      <d2p1:SchedulingID>2</d2p1:SchedulingID>
      <d2p1:Date>2024-12-22T08:09:44.8640841+01:00</d2p1:Date>
      <d2p1:BeginTime>2024-12-22T08:09:44.8640841+01:00</d2p1:BeginTime>
      <d2p1:EndTime>2024-12-22T08:09:44.8640841+01:00</d2p1:EndTime>
      <d2p1:AcknowledgedID>6</d2p1:AcknowledgedID>
      <d2p1:Task>
        <d2p1:ID>6</d2p1:ID>
        <d2p1:Name>sample string 7</d2p1:Name>
        <d2p1:Customer>
          <d2p1:ID>5</d2p1:ID>
          <d2p1:Name>sample string 6</d2p1:Name>
          <d2p1:UserID>3</d2p1:UserID>
          <d2p1:Email>sample string 4</d2p1:Email>
          <d2p1:BeginDates xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:dateTime>2024-12-22T08:09:44.8640841+01:00</d6p1:dateTime>
            <d6p1:dateTime>2024-12-22T08:09:44.8640841+01:00</d6p1:dateTime>
          </d2p1:BeginDates>
          <d2p1:EndDates xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:dateTime>2024-12-22T08:09:44.8640841+01:00</d6p1:dateTime>
            <d6p1:dateTime>2024-12-22T08:09:44.8640841+01:00</d6p1:dateTime>
          </d2p1:EndDates>
          <d2p1:Details1>sample string 1</d2p1:Details1>
          <d2p1:Details2>sample string 2</d2p1:Details2>
        </d2p1:Customer>
        <d2p1:Location>
          <d2p1:ID>3</d2p1:ID>
          <d2p1:Name>sample string 4</d2p1:Name>
          <d2p1:Details1>sample string 1</d2p1:Details1>
          <d2p1:Details2>sample string 2</d2p1:Details2>
        </d2p1:Location>
        <d2p1:Color>1</d2p1:Color>
        <d2p1:BeginTime>sample string 2</d2p1:BeginTime>
        <d2p1:EndTime>sample string 3</d2p1:EndTime>
        <d2p1:Details1>sample string 4</d2p1:Details1>
        <d2p1:Details2>sample string 5</d2p1:Details2>
      </d2p1:Task>
      <d2p1:PlannerComment>sample string 1</d2p1:PlannerComment>
    </d2p1:ScheduledTaskInfo>
  </ScheduledTasks>
  <SearchID>1</SearchID>
  <SearchOnQualifications>true</SearchOnQualifications>
  <SearchPhrase>sample string 6</SearchPhrase>
  <SubmitterDate>2024-12-22T08:09:44.8640841+01:00</SubmitterDate>
</FindQualifiedResourcesModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Collection of Resource
NameDescriptionTypeAdditional information
DefaultAvailable

boolean

None.

Name

string

None.

LastName

string

None.

MiddleName

string

None.

FirstName

string

None.

FullName

string

None.

EmployeeNumber

string

None.

UserGroup

string

None.

GroupSchedule1

string

None.

GroupSchedule2

string

None.

GroupSchedule3

string

None.

GroupSchedule4

string

None.

GroupSchedule5

string

None.

DefaultUserGroup

string

None.

UserID

integer

None.

Email

string

None.

BeginDates

Collection of date

None.

EndDates

Collection of date

None.

ID

integer

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "DefaultAvailable": true,
    "UserID": 14,
    "ID": 16,
    "Name": "sample string 5",
    "Email": "sample string 15",
    "LastName": "sample string 2",
    "BeginDates": [
      "2024-12-22T08:09:44.8797057+01:00",
      "2024-12-22T08:09:44.8797057+01:00"
    ],
    "MiddleName": "sample string 3",
    "EndDates": [
      "2024-12-22T08:09:44.8797057+01:00",
      "2024-12-22T08:09:44.8797057+01:00"
    ],
    "FirstName": "sample string 4",
    "FullName": "sample string 5",
    "EmployeeNumber": "sample string 6",
    "UserGroup": "sample string 7",
    "GroupSchedule1": "sample string 8",
    "GroupSchedule2": "sample string 9",
    "GroupSchedule3": "sample string 10",
    "GroupSchedule4": "sample string 11",
    "GroupSchedule5": "sample string 12",
    "DefaultUserGroup": "sample string 13"
  },
  {
    "DefaultAvailable": true,
    "UserID": 14,
    "ID": 16,
    "Name": "sample string 5",
    "Email": "sample string 15",
    "LastName": "sample string 2",
    "BeginDates": [
      "2024-12-22T08:09:44.8797057+01:00",
      "2024-12-22T08:09:44.8797057+01:00"
    ],
    "MiddleName": "sample string 3",
    "EndDates": [
      "2024-12-22T08:09:44.8797057+01:00",
      "2024-12-22T08:09:44.8797057+01:00"
    ],
    "FirstName": "sample string 4",
    "FullName": "sample string 5",
    "EmployeeNumber": "sample string 6",
    "UserGroup": "sample string 7",
    "GroupSchedule1": "sample string 8",
    "GroupSchedule2": "sample string 9",
    "GroupSchedule3": "sample string 10",
    "GroupSchedule4": "sample string 11",
    "GroupSchedule5": "sample string 12",
    "DefaultUserGroup": "sample string 13"
  }
]

application/xml, text/xml

Sample:
<ArrayOfResource xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Paralax.Cas.Web.WebServices.Models">
  <Resource>
    <ID>16</ID>
    <Name>sample string 5</Name>
    <UserID>14</UserID>
    <Email>sample string 15</Email>
    <BeginDates xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:dateTime>2024-12-22T08:09:44.8797057+01:00</d3p1:dateTime>
      <d3p1:dateTime>2024-12-22T08:09:44.8797057+01:00</d3p1:dateTime>
    </BeginDates>
    <EndDates xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:dateTime>2024-12-22T08:09:44.8797057+01:00</d3p1:dateTime>
      <d3p1:dateTime>2024-12-22T08:09:44.8797057+01:00</d3p1:dateTime>
    </EndDates>
    <DefaultAvailable>true</DefaultAvailable>
    <LastName>sample string 2</LastName>
    <MiddleName>sample string 3</MiddleName>
    <FirstName>sample string 4</FirstName>
    <FullName>sample string 5</FullName>
    <EmployeeNumber>sample string 6</EmployeeNumber>
    <UserGroup>sample string 7</UserGroup>
    <GroupSchedule1>sample string 8</GroupSchedule1>
    <GroupSchedule2>sample string 9</GroupSchedule2>
    <GroupSchedule3>sample string 10</GroupSchedule3>
    <GroupSchedule4>sample string 11</GroupSchedule4>
    <GroupSchedule5>sample string 12</GroupSchedule5>
    <DefaultUserGroup>sample string 13</DefaultUserGroup>
  </Resource>
  <Resource>
    <ID>16</ID>
    <Name>sample string 5</Name>
    <UserID>14</UserID>
    <Email>sample string 15</Email>
    <BeginDates xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:dateTime>2024-12-22T08:09:44.8797057+01:00</d3p1:dateTime>
      <d3p1:dateTime>2024-12-22T08:09:44.8797057+01:00</d3p1:dateTime>
    </BeginDates>
    <EndDates xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:dateTime>2024-12-22T08:09:44.8797057+01:00</d3p1:dateTime>
      <d3p1:dateTime>2024-12-22T08:09:44.8797057+01:00</d3p1:dateTime>
    </EndDates>
    <DefaultAvailable>true</DefaultAvailable>
    <LastName>sample string 2</LastName>
    <MiddleName>sample string 3</MiddleName>
    <FirstName>sample string 4</FirstName>
    <FullName>sample string 5</FullName>
    <EmployeeNumber>sample string 6</EmployeeNumber>
    <UserGroup>sample string 7</UserGroup>
    <GroupSchedule1>sample string 8</GroupSchedule1>
    <GroupSchedule2>sample string 9</GroupSchedule2>
    <GroupSchedule3>sample string 10</GroupSchedule3>
    <GroupSchedule4>sample string 11</GroupSchedule4>
    <GroupSchedule5>sample string 12</GroupSchedule5>
    <DefaultUserGroup>sample string 13</DefaultUserGroup>
  </Resource>
</ArrayOfResource>