Create New Vehicle
POST/truckers/vehicles/
Register a new vehicle in the authenticated carrier's fleet. Allows uploading vehicle images that are stored in Amazon S3.
Required fields:
- licensePlate: Vehicle license plate
- type: Vehicle type (must exist in the system)
Use cases:
- Add new vehicles to the fleet
- Register newly acquired vehicles
- Update fleet with new units
Request example:
{
licensePlate: 1234ABC,
type: RIGID,
brand: Volvo,
model: FH16,
year: 2022
}
Notes:
- Images must be sent as multipart files
- Maximum size per image is 5MB
- Supported formats: JPG, PNG
Request
Responses
- 200
- 400
- 401
- 403
- 409
Vehicle successfully created
Invalid request
Unauthorized
Authorization or validation error.
Occurs when the user lacks permissions or the data is invalid.
Conflict - The enrollment already exists in the system.