Get Assignment Result
Retrieve assignment results
GET
/scheduling/result/{productionId}Retrieve the results from an async assignment request. Poll this endpoint after calling Assign Drivers Async until the status is completed or failed.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
productionId | string | Yes | The production ID returned from Assign Drivers Async |
Response Status Values
| Status | Description |
|---|---|
processing | Assignment is in progress |
completed | Assignment finished successfully |
failed | Assignment encountered an error |
cancelled | Assignment was cancelled |
Example Response (Completed)
Response Fields
| Field | Type | Description |
|---|---|---|
status | string | Processing status |
assignments | Assignment[] | Successful trip-vehicle assignments |
assignments[].tripId | string | Assigned trip ID |
assignments[].vehicleId | string | Assigned vehicle ID |
assignments[].driverId | string | Assigned driver ID |
unassigned | string[] | Trip IDs that could not be assigned |