Skip to main content

Remove Carpool Access from a Driver

DELETE 

/carpool/drivers/:driver_id

Removes the driver's Carpool access by clearing the three booking flags. The driver record in the fleet is not touched.

If the driver is the requesting driver on affected bookings (REQUESTED, EXPIRING_APPROVAL or APPROVED bookings over the next two years) the answer is 409 and nothing is written. With force=true the access is removed and the bookings are left as they are. Unlike a vehicle removal, nothing is moved or cancelled, because FleetWeb has no booking handling for drivers. force only accepts true and false.

A driver that GET /carpool/drivers would not list, because the subuser who created the driver has no view permission on drivers, answers 404 and nothing is removed. A listed driver needs the owner subuser to hold both the view and the remove permission on drivers. Without it the answer is 403 with the reason code CARPOOL_DRIVER_OWNER_PERMISSION_DENIED and nothing is removed. A driver created by the main account, or by a subuser with no driver permission set, is never refused for this reason.

This operation is available to the main account only.

Request​

Responses​

The driver's Carpool access was removed. data carries the driver id and meta carries the message.