Skip to main content

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

Body

required
    name stringrequired

    Name of the vehicle type which will be shown in the app.

    iconOnMap stringrequired

    Icon on map. Must be a cloudfront URL.

    iconOnApp stringrequired

    Icon on app. Must be a cloudfront URL.

    iconOnWeb stringrequired

    Icon on web. Must be a cloudfront URL.

    passengers number

    Possible values: >= 1

    Maximum number of passengers. Default is 1.

    luggage number

    Maximum number of luggage. Default is 0.

    description string

    Short description of the vehicle type.

Responses

Vehicle type successfully created

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

Loading...