curl -X PUT "http://localhost:8080/api/vehicles/1" \ -H "Content-Type: application/json" \ -d '{ "reference": "BMW2024A1B2", "brand": "BMW", "model": "X5 M Sport", "hp": 400, "autonomy": 700, "averageconsumption": 7.8, "description": "Updated luxury SUV with M Sport package", "price": 72000.00, "year": 2024, "fuelType": "diesel", "mileage": 18000, "extras": "Navigation, Leather seats, Sunroof, M Sport package", "doors": 5, "vehicleType": "SUV", "offers": "No" }'
{ "id": 1, "reference": "BMW2024A1B2", "brand": "BMW", "model": "X5 M Sport", "hp": 400, "autonomy": 700, "averageconsumption": 7.8, "description": "Updated luxury SUV with M Sport package", "price": 72000.00, "year": 2024, "fuelType": "diesel", "mileage": 18000, "extras": "Navigation, Leather seats, Sunroof, M Sport package", "createdAt": "2024-01-15T10:30:00", "updatedAt": "2024-03-01T16:45:00", "doors": 5, "vehicleType": "SUV", "offers": "No", "images": [] }
Update an existing vehicle