Update a vehicle type
PATCH/v1/vehicle-types/:id
Updates vehicle type configuration including icons, capacity, availability, and driver app settings
Request
Path Parameters
Vehicle Type ID
- application/json
Body
required
Name of the vehicle type which will be shown in the app.
Icon on map. Must be a cloudfront URL.
Icon on app. Must be a cloudfront URL.
Icon on web. Must be a cloudfront URL.
Possible values: >= 1
Maximum number of passengers. Default is 1.
Maximum number of luggage. Default is 0.
Short description of the vehicle type.
Responses
- 200
- 400
- 404
Vehicle type updated successfully
- application/json
- Schema
- Example (from schema)
Schema
The ID of the vehicle type
The name of the vehicle type
The icon on map of the vehicle type
The icon on app of the vehicle type
The icon on web of the vehicle type
The passengers of the vehicle type
The luggage of the vehicle type
The description of the vehicle type
The created date of the vehicle type
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