Skip to main content

PATCH /moves/:id

Partially update an existing move. Only the fields included in the request body are modified — all other fields remain unchanged.

note

Moves can only be patched before pickup is completed and while uncanceled. Attempts to patch a move with a status of pickup successful, delivery started, delivery arrived, or delivery successful, or any canceled move, will return a 400 error.

Auth Header
curl --request PATCH \
--url https://api.hopdrive.com/v1/moves/:id \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <your token>' \
--data '{ ... }'

Example Request

PATCH /v1/moves/10033
{
"vehicle_make": "Toyota",
"vehicle_model": "Camry",
"vehicle_year": "2022",
"vehicle_color": "Blue",
"ready_by": "2026-03-20T14:00:00+00:00"
}

Body Params

FieldTypeRequired?Description
vehicle_yearStringOptionalModel year of the vehicle.
vehicle_makeStringOptionalMake of the vehicle (e.g. Toyota).
vehicle_modelStringOptionalModel of the vehicle (e.g. Camry).
vehicle_colorStringOptionalColor of the vehicle.
vehicle_stockStringOptionalDealer stock number for the vehicle.
vehicle_vinStringOptionalVehicle Identification Number.
ready_byStringOptionalISO 8601 timestamp for when the vehicle will be ready for pickup.
reference_numStringOptionalYour internal reference number for this move.

At least one field must be provided. Sending an empty body will return a 400 error.

Example Response

200 /v1/moves/10033
{
"id": 10033,
"vehicle_year": "2022",
"vehicle_make": "Toyota",
"vehicle_model": "Camry",
"vehicle_color": "Blue",
"vehicle_stock": "STK-00419",
"vehicle_vin": "4T1BF1FK8CU512345",
"ready_by": "2026-03-20T14:00:00+00:00",
"reference_num": "REF-001"
}

Error Responses

StatusDescription
400Invalid move ID, empty body, invalid ready_by timestamp, unauthorized, or move is in a non-patchable state (post-pickup or canceled).
404Move not found.
500Unexpected server error.