Assign a load
PUT /api/public/v1/loads/{id}/assignment
Scope: loads.write (carrierCost: also loads.rates). MCP tool: assign_load. Rules and edge cases: Loads guide.
Parameters
Section titled “Parameters”| Name | In | Type | Required | Notes |
|---|---|---|---|---|
id |
path | string (uuid) | yes |
Request body
Section titled “Request body”Content type application/json. Limits and rules for each field are in the Loads guide.
| Field | Type | Required | Notes |
|---|---|---|---|
rowVersion |
integer | no | |
carrierId |
string (uuid) | no | |
carrierDriverIds |
string (uuid)[] | no | |
carrierTruckId |
string (uuid) | no | |
carrierCost |
number | no | |
driverIds |
string (uuid)[] | no | |
truckId |
string (uuid) | no | |
trailerId |
string (uuid) | no |
Responses
Section titled “Responses”| Status | Meaning | Body |
|---|---|---|
200 |
OK | PublicLoad |
404 |
Not Found | ProblemDetails |
409 |
Conflict | ProblemDetails |
422 |
Unprocessable Entity | ProblemDetails |
200 body
Section titled “200 body”| Field | Type | Notes |
|---|---|---|
id |
string (uuid) | |
loadNumber |
string | |
workOrderNumber |
string | |
status |
enum LoadStatus | One of PreBook, Open, Covered, AtPickup, EnRoute, AtDelivery, Delivered, Completed, Invoiced, Cancelled, TONU |
type |
enum LoadType | One of Spot, Dedicated, Contract |
equipment |
string | One of DryVan, Flatbed, Reefer, Tanker, StepDeck, Other, null |
customer |
PublicLoadCustomer | |
customer.id |
string (uuid) | |
customer.name |
string | |
dispatcherName |
string | |
assignment |
PublicLoadAssignment | |
assignment.mode |
enum AssignmentMode | One of None, Driver, Carrier |
assignment.driverNames |
string[] | |
assignment.truck |
string | |
assignment.trailer |
string | |
assignment.carrierName |
string | |
rowVersion |
integer | |
stops |
PublicLoadStop[] | |
stops[].id |
string (uuid) | |
stops[].order |
integer | |
stops[].type |
enum StopType | One of Shipper, Consignee |
stops[].facilityName |
string | |
stops[].scheduledDate |
string (date-time) | |
stops[].scheduledLocal |
string | |
stops[].timeZoneId |
string | |
stops[].appointmentConfirmed |
boolean | |
stops[].commodity |
string | |
stops[].quantity |
integer | |
stops[].weightLbs |
number | |
stops[].referenceNumber |
string | |
stops[].notes |
string | |
stops[].arrivedAt |
string (date-time) | |
stops[].departedAt |
string (date-time) | |
createdAt |
string (date-time) | |
updatedAt |
string (date-time) | |
isSample |
boolean | |
notes |
PublicLoadNote[] | |
notes[].id |
string (uuid) | |
notes[].createdAt |
string (date-time) | |
notes[].by |
string | |
notes[].text |
string | |
rate |
number | |
finalRate |
number | |
otherCharges |
PublicLoadCharge[] | |
otherCharges[].id |
string (uuid) | |
otherCharges[].type |
string | |
otherCharges[].description |
string | |
otherCharges[].amount |
number | |
autoCharges |
PublicLoadCharge[] | |
autoCharges[].id |
string (uuid) | |
autoCharges[].type |
string | |
autoCharges[].description |
string | |
autoCharges[].amount |
number |
Errors are RFC 7807 problem details; see Errors.