Create a new vehicle type
POST/v1/vehicle-types
Creates a new vehicle type configuration with icons, capacity settings, service types, and availability options. Icons must be CloudFront URLs. All zones will be assigned by default.
Request
- 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
- 201
- 400
Vehicle type successfully created
- 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 input data or invalid CloudFront URL