Create a new vehicle
POST/vehicles
Registers a new vehicle in the system. Requires JWT authentication with the 'fleet_manager' role.
Example of use:
{
"model": "Volvo FH 540",
"licensePlate": "5678XYZ",
"status": "active",
"maxWeight": 40.0,
"dimensions": {
"length": 16.5,
"width": 2.55,
"height": 4.0
}
}
Request
Responses
- 201
- 400
- 401
- 500
Vehicle created successfully
Invalid vehicle data
Unauthorized - Invalid or missing Token
Server error