Delete a vehicle type
DELETE/v1/vehicle-types/:id
Permanently deletes a vehicle type from the system. This action cannot be undone. Warning: This may affect vehicles and rates using this type.
Request
Path Parameters
id stringrequired
Vehicle Type ID
Responses
- 204
- 400
- 404
Vehicle type deleted successfully
- application/json
- Schema
- Example (from schema)
Schema
_id stringrequired
The ID of the vehicle type
name stringrequired
The name of the vehicle type
iconOnMap stringrequired
The icon on map of the vehicle type
iconOnApp stringrequired
The icon on app of the vehicle type
iconOnWeb stringrequired
The icon on web of the vehicle type
passengers numberrequired
The passengers of the vehicle type
luggage numberrequired
The luggage of the vehicle type
description stringrequired
The description of the vehicle type
createdDate date-timerequired
The created date of the vehicle type
latestUpdate date-timerequired
The latest update date of the vehicle type
{
"_id": "672d07188234567890123456",
"name": "Vehicle Type 1",
"iconOnMap": "https://example.com/icon.png",
"iconOnApp": "https://example.com/icon.png",
"iconOnWeb": "https://example.com/icon.png",
"passengers": 1,
"luggage": 1,
"description": "Description of the vehicle type",
"createdDate": "2025-01-01T00:00:00.000Z",
"latestUpdate": "2025-01-01T00:00:00.000Z"
}
Invalid vehicle type ID format
Vehicle type not found
Loading...