Get scheduling assistant suggestions
Changed onSuggests candidate resources or vehicles and time slots for scheduling a job. Returns suggestions only - use PUT /v1/jobs/{jobId}/schedule to act on one (required scope jobs:read)
Request
- Base URLhttps://api.bigchange.com
- URLhttps://api.bigchange.com/v1/jobs/schedulingAssistant
- AuthHTTP bearer
Query parameters
The type of entity to find scheduling suggestions for<p>Possible values:</p><ul><li><b>resources</b>: Suggest resources</li><li><b>vehicles</b>: Suggest vehicles</li></ul>
Whether to find candidate resources or vehicles
The latitude of the location to schedule the job at. Required unless jobId is supplied, in which case the job's own location is used
The longitude of the location to schedule the job at. Required unless jobId is supplied, in which case the job's own location is used
The UTC start of the date range to search for available slots in
The UTC end of the date range to search for available slots in. The range is capped at 7 days from fromDate
The time-of-day period to restrict scheduling suggestions to<p>Possible values:</p><ul><li><b>anytime</b>: Any time of day</li><li><b>morning</b>: The morning period</li><li><b>afternoon</b>: The afternoon period</li><li><b>custom</b>: A custom period, defined by whenFrom and whenTo</li></ul>
The time-of-day period to restrict suggestions to
The start of the custom time-of-day period. Required when when is Custom
The end of the custom time-of-day period. Required when when is Custom
The unique identifier of the job to schedule. When supplied, the job's own location, duration and restrictions are used instead of the raw parameters
Restrict suggestions to a single resource
Restrict suggestions to a single resource group
Restrict suggestions to a single vehicle
Restrict suggestions to a single vehicle group
Restrict suggestions to resources with all of the given skills (Max items: 50)
Restrict suggestions to vehicles with all of the given attributes (Max items: 50)
Headers
The customer identifier
Response
OK
Example response
{
"items": [
{
"resourceId": 243556,
"vehicleId": 665433,
"resourceReference": "ENG-04",
"resourceName": "John Smith",
"resourceGroupName": "Plumbers",
"skills": [
"Gas Safe",
"Electrical"
],
"startAt": "2022-11-29T12:00:00.0000000+00:00",
"extraDistanceKm": 4.2,
"extraDrivingMinutes": 12,
"jobCost": 45.5,
"averageDurationMinutes": 75,
"successRatePercent": 92.5,
"punctualityPercent": 88
}
]
}Changes
- info
endpoint added
- info