Get details of a specific vehicle
GET/company/vehicles/:id
Endpoint to retrieve the complete information of a specific vehicle in the fleet, identified by its unique ID.
Use Cases:
- View all data for a particular vehicle
- Verify information before an update
- Obtain image URLs for display in interfaces
Example of a successful response:
{
vehicle: {
id: veh_123456789,
license_plate: ABC1234,
type: type_987654321,
brand: Volvo,
model: FH16,
year: 2022,
images: [
https://storage.example.com/vehicles/abc123.jpg,
https://storage.example.com/vehicles/abc123_side.jpg
],
created_at: 2023-01-15T10:30:00Z,
updated_at: 2023-01-15T10:30:00Z
}
}
Request
Responses
- 200
- 401
- 404
Vehicle details obtained successfully.
Unauthorized. The JWT token is invalid, has expired, or lacks permissions to access this resource.
A valid token must be included in the Authorization header: Bearer {token}
Vehicle not found. The provided ID does not correspond to any existing vehicle in the company's fleet.