Skip to main content

Remove a Vehicle from Carpool

DELETE 

/carpool/vehicles/:vehicle_id

Removes a vehicle from the Carpool inventory by switching its Carpool enrolment off. The vehicle itself is not touched and stays in the fleet.

If the vehicle has affected bookings (requested or approved bookings over the next two years) the answer is 409 and nothing is written. With force=true the vehicle is removed and each affected booking is moved to another assignable vehicle, or cancelled when none exists, in the same request. A driver whose booking is cancelled is notified, under the account's notification rules. force only accepts true and false.

This operation is available to the main account only.

Request​

Responses​

The vehicle was removed from Carpool. data carries the vehicle id and what happened to each affected booking, meta carries the message.