Update vehicle
PUT/truckers/vehicles/
Updates the information of an existing vehicle in the fleet. Allows modification of all fields except the license plate. Sent images will replace the existing ones.
Modifiable fields:
- type: Vehicle type
- brand: Brand
- model: Model
- year: Year
- images: Images (completely replaced)
Use cases:
- Update vehicle technical information
- Change vehicle images
- Correct erroneous data
Request example:
{
type: RIGID,
brand: Volvo,
model: FH16,
year: 2022
}
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 409
Vehicle successfully updated
Invalid request
Unauthorized
Authorization or validation error.
Occurs when the user lacks permissions or the data is invalid.
Vehicle not found
Conflict - The registration cannot be modified.