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, EXPIRING_APPROVAL 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
- 200
- 401
- 403
- 404
- 409
- 422
- 429
- 500
- 503
The vehicle was removed from Carpool. data carries the vehicle id and what happened to each affected booking, 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.
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.