Skip to main content
DELETE
/
api
/
favourites
/
{userId}
/
{vehicleId}
curl -X DELETE https://api.drivex.com/api/favourites/123/456
200 OK
This endpoint removes a specific vehicle from a user’s favorites list.
userId
long
required
The unique identifier of the user
vehicleId
long
required
The unique identifier of the vehicle to remove from favorites

Response

Returns no content (void) on success. The operation is idempotent - attempting to remove a favorite that doesn’t exist will succeed without error.

Behavior

  • Deletes the favorite relationship between the specified user and vehicle
  • If no such favorite exists, the request succeeds without error
  • The vehicle and user records remain unchanged; only the favorite relationship is removed
curl -X DELETE https://api.drivex.com/api/favourites/123/456
200 OK

Build docs developers (and LLMs) love