[API] Delete Vehicle
Deletes a vehicle of the vehicle supplier.
¶ Resource
/v1/vehicle-suppliers/vehicles/:vehicle_id
¶ HTTP Method
DELETE
¶ Access Method
¶ Required scopes
vehicle_suppliers.vehicles.write
¶ Example Request
curl -X DELETE "https://api.uber.com/v1/vehicle-suppliers/vehicles/:vehicle_id" \
-H "Authorization: Bearer <TOKEN>" \
-H "Content-Type: application/json"
¶ Request Path Parameters
Name | Type | Description |
---|---|---|
vehicle_id |
string | Vehicle ID returned from Create Vehicle response. |
¶ Example Response
Status-code: 204 No Content
{
}
¶ Endpoint Specific Errors
Http Status Code | Code | Message |
---|---|---|
400 |
bad_request | The request parameters are invalid |
401 |
unauthorized | Invalid OAuth 2.0 credentials provided |
404 |
vehicle_not_found | The vehicle was not found or not authorized |
429 |
delete_assigned_vehicle | Not allowed to delete the assigned vehicle |
422 |
rate_limited | Number of requests exceeds allowed limit |
500 |
internal_server_error | Internal server error |
503 |
service_unavailable | Service unavailable |