Skip to content

Update an item

PUT /api/bookings/v4/{id}/items/{item_id}

Updates an existing item. Multipickup bookings reject item changes with 400.

ParameterTypeRequiredDescription
idintegerYesThe booking ID
item_idintegerYesThe item ID
FieldTypeRequiredDescription
weightnumberNoWeight in kilograms
heightnumberNoHeight in centimetres
widthnumberNoWidth in centimetres
lengthnumberNoLength in centimetres
quantityintegerNoNumber of identical items
descriptionstringNoPackaging type from the allowed list
Terminal window
curl -X PUT \
-H "Api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"weight": 7.5,
"description": "Carton"
}' \
https://www.transdirect.com.au/api/bookings/v4/123456/items/1

A successful response returns 200 with the updated item:

{
"id": 1,
"description": "Carton",
"weight": 7.5,
"length": 40,
"width": 30,
"height": 20,
"quantity": 1
}
Status codeMeaning
400Invalid fields, invalid packaging type, or multipickup booking
401Unauthorised
404Booking or item not found