Dispatch and Routing
Auto-assign Jobs
Use this endpoint to automatically assign jobs to workers.
This API endpoint allows for the automated assignment of a set of jobs to a specified group of workers.
REQUEST
Initiate a POST request to auto-assign jobs based on specified criteria.
jobs
array
requiredArray of job IDs to be assigned.
workers
array
requiredArray of worker usernames for job assignment.
method
string
default: "distance"Assignment method: distance
, zones
, or size
.
pickupCapacity
integer
Pickup capacity constraint for assignment.
dropoffCapacity
integer
Dropoff capacity constraint for assignment.
day
integer
default: 0The specific day for assignment, format YYYYMMDD. Defaults to today (=0).
RESPONSE
Response detailing the assignment status of the jobs.
assignedJobs
array
List of job IDs that were successfully assigned.
unassignedJobs
array
List of job IDs that could not be assigned.
jobs
array
A comprehensive list of all jobs considered during the assignment process.