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
- 200
- 401
- 403
- 404
- 409
- 422
- 429
- 500
- 503
The driver's Carpool access was removed. data carries the driver id and meta carries the message.
Unauthorized access. Authentication is required.
Access is forbidden, and nothing was written. Either the caller is not the main account, or the driver is listed by GET /carpool/drivers but the subuser who owns the driver does not hold the permission the operation needs.
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.
Too Many Requests - the endpoint's rate limit has been exceeded. Retry after the number of seconds in the Retry-After header.
Response Headers
Seconds to wait before retrying. The same value as X-RateLimit-Retry-After-Seconds when that wait is non-negative. If the computed wait is negative, Retry-After is floored at 0.
Unix timestamp of the next earliest successful request.
Seconds until the next earliest successful request.
Internal server error.
Service temporarily unavailable. The request did not complete and can be retried after the number of seconds in the Retry-After header, when one is sent.
Response Headers
Seconds to wait before retrying. Sent with db_busy and db_pool_timeout.