Get available vehicle types
GET/company/vehicles/types
Endpoint to list all vehicle types configured in the system. These types are used when creating or updating vehicles.
Use cases:
- Display options when creating a new vehicle
- Filter vehicles by type
- Obtain metadata about load capacities
Example of a successful response:
{
types: [
{
id: type_987654321,
name: Truck,
description: Articulated truck with a load capacity of 40 tons,
created_at: 2022-05-10T08:30:00Z,
updated_at: 2022-05-10T08:30:00Z
},
{
id: type_123456789,
name: Van,
description: Delivery van with a capacity of 3 tons,
created_at: 2022-05-10T08:30:00Z,
updated_at: 2022-06-15T14:20:00Z
}
]
}
Responses
- 200
- 401
Vehicle type list successfully obtained.
Unauthorized. The JWT token is invalid, has expired, or lacks permission to access this resource. A valid token must be included in the Authorization header: Bearer {token}