POST api/clients/{clientId}/solutionsets?searchWindow={searchWindow}&overrideClientTripLimits={overrideClientTripLimits}

Tries to find solutions for scheduling one or more trips.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
clientId

The ID of the client whose trips are being scheduled.

integer

Required

searchWindow

The value used to expand the scheduling search window in total minutes. If the value is null, then we would use the default search window from PASS/NOVUS but if a value is provided, DRWebAPI will attempt to search for any solution sets that fits in that expanded search window.

time interval

None.

overrideClientTripLimits

Indicates that we want to schedule the trip regardless of validation rules on the client. This is typically used in situations where one client object is being used to represent multiple people.

boolean

Default value is False

Body Parameters

The IDs of the bookings to schedule.

Collection of integer

Request Formats

application/json, text/json

Sample:
[
  1,
  2
]

application/xml, text/xml

Sample:
<ArrayOfint xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
  <int>1</int>
  <int>2</int>
</ArrayOfint>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Returns the list of scheduling solutions for the trip(s). May return more than one if the schedule server cannot generate an itinerary solution for all bookings.

ScheduleSolutionSet
NameDescriptionTypeAdditional information
ID

Gets the ID of the solution set.

integer

None.

ItinerarySolutions

Gets the list of solutions that can be selected.

Collection of ScheduleItinerarySolution

None.

Response Formats

application/json, text/json

Sample:
{
  "id": 1,
  "itinerarySolutions": [
    {
      "solutionNumber": 1,
      "scheduleId": 2,
      "tripSolutions": [
        {
          "tripId": 1,
          "pickupTime": "00:00:00.1234567",
          "dropoffTime": "00:00:00.1234567",
          "scheduledPickupTime": "00:00:00.1234567",
          "scheduledDropoffTime": "00:00:00.1234567",
          "scheduledDropoffEarly": "00:00:00.1234567",
          "scheduledDropoffLate": "00:00:00.1234567",
          "scheduledPickupEarly": "00:00:00.1234567",
          "scheduledPickupLate": "00:00:00.1234567",
          "scheduledDate": "2024-12-23",
          "transportMode": 0,
          "runName": "sample string 4",
          "providerCost": 5.1,
          "violations": "sample string 6",
          "vehicleId": 7,
          "vehicleNumber": "sample string 8",
          "driverFirstName": "sample string 9",
          "driverLastName": "sample string 10",
          "driverTitle": "sample string 11",
          "driverBadgeNumber": "sample string 12",
          "driverEmployeeId": "sample string 13",
          "providerName": "sample string 14",
          "rtpConfidenceLevel": 15,
          "providerId": 16
        },
        {
          "tripId": 1,
          "pickupTime": "00:00:00.1234567",
          "dropoffTime": "00:00:00.1234567",
          "scheduledPickupTime": "00:00:00.1234567",
          "scheduledDropoffTime": "00:00:00.1234567",
          "scheduledDropoffEarly": "00:00:00.1234567",
          "scheduledDropoffLate": "00:00:00.1234567",
          "scheduledPickupEarly": "00:00:00.1234567",
          "scheduledPickupLate": "00:00:00.1234567",
          "scheduledDate": "2024-12-23",
          "transportMode": 0,
          "runName": "sample string 4",
          "providerCost": 5.1,
          "violations": "sample string 6",
          "vehicleId": 7,
          "vehicleNumber": "sample string 8",
          "driverFirstName": "sample string 9",
          "driverLastName": "sample string 10",
          "driverTitle": "sample string 11",
          "driverBadgeNumber": "sample string 12",
          "driverEmployeeId": "sample string 13",
          "providerName": "sample string 14",
          "rtpConfidenceLevel": 15,
          "providerId": 16
        }
      ]
    },
    {
      "solutionNumber": 1,
      "scheduleId": 2,
      "tripSolutions": [
        {
          "tripId": 1,
          "pickupTime": "00:00:00.1234567",
          "dropoffTime": "00:00:00.1234567",
          "scheduledPickupTime": "00:00:00.1234567",
          "scheduledDropoffTime": "00:00:00.1234567",
          "scheduledDropoffEarly": "00:00:00.1234567",
          "scheduledDropoffLate": "00:00:00.1234567",
          "scheduledPickupEarly": "00:00:00.1234567",
          "scheduledPickupLate": "00:00:00.1234567",
          "scheduledDate": "2024-12-23",
          "transportMode": 0,
          "runName": "sample string 4",
          "providerCost": 5.1,
          "violations": "sample string 6",
          "vehicleId": 7,
          "vehicleNumber": "sample string 8",
          "driverFirstName": "sample string 9",
          "driverLastName": "sample string 10",
          "driverTitle": "sample string 11",
          "driverBadgeNumber": "sample string 12",
          "driverEmployeeId": "sample string 13",
          "providerName": "sample string 14",
          "rtpConfidenceLevel": 15,
          "providerId": 16
        },
        {
          "tripId": 1,
          "pickupTime": "00:00:00.1234567",
          "dropoffTime": "00:00:00.1234567",
          "scheduledPickupTime": "00:00:00.1234567",
          "scheduledDropoffTime": "00:00:00.1234567",
          "scheduledDropoffEarly": "00:00:00.1234567",
          "scheduledDropoffLate": "00:00:00.1234567",
          "scheduledPickupEarly": "00:00:00.1234567",
          "scheduledPickupLate": "00:00:00.1234567",
          "scheduledDate": "2024-12-23",
          "transportMode": 0,
          "runName": "sample string 4",
          "providerCost": 5.1,
          "violations": "sample string 6",
          "vehicleId": 7,
          "vehicleNumber": "sample string 8",
          "driverFirstName": "sample string 9",
          "driverLastName": "sample string 10",
          "driverTitle": "sample string 11",
          "driverBadgeNumber": "sample string 12",
          "driverEmployeeId": "sample string 13",
          "providerName": "sample string 14",
          "rtpConfidenceLevel": 15,
          "providerId": 16
        }
      ]
    }
  ]
}

application/xml, text/xml

Sample:
<ScheduleSolutionSet xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TS.DR.Resources" />