Vehicles
Update a vehicle
Replaces vehicle data. All fields are optional – only provided fields are updated.
put/vehicles/{id}
Request
- Base URL: http://localhost:3000
- URL: http://localhost:3000/vehicles/{id}
- Auth: none declared
Path parameters
idinteger required
Numeric resource identifier
Request body
Example request
{
"make": "Toyota",
"model": "Camry",
"year": 2025,
"fuel_tank_capacity": 60
}Response
Vehicle updated successfully
Example response
{
"id": 1,
"make": "Suzuki",
"model": "S4",
"year": 2021,
"fuel_tank_capacity": "51.1"
}Changes
No recorded changes to this operation across all 1 revision of this API.