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 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.
This operation is available to the main account only.
Request
Responses
- 200
- 401
- 403
- 404
- 409
- 422
- 500
The driver's Carpool access was removed. data carries the driver id and meta carries the message.
Unauthorized access. Authentication is required.
The operation requires main account credentials. Valid subusers receive this response.
The requested resource was not found.
The request affects bookings and force=true was not sent. Nothing was written. Review the bookings, then repeat the request with force=true.
Request field validation or Carpool business validation failed.
Internal server error.