Skip to main content

CreateVehicleInput

Input for the createVehicle mutation.

input CreateVehicleInput {
acquisitionDate: Date
brand: String!
category: VehicleCategory!
licensePlate: String
location: String
model: String!
parkId: ResidentialParkID!
technicalInspectionValidTo: Date
vin: String
}

Fields​

CreateVehicleInput.acquisitionDate ● Date scalar​

Date the vehicle was registered for the organisation (Erworben am).

CreateVehicleInput.brand ● String! non-null scalar​

Name of the brand, e.g. Ford. Created if it does not exist yet.

CreateVehicleInput.category ● VehicleCategory! non-null enum​

Category of the vehicle. WALK is not a vehicle and is rejected.

CreateVehicleInput.licensePlate ● String scalar​

The official identifier of the vehicle. Mandatory for CAR and SCOOTER.

CreateVehicleInput.location ● String scalar​

Where the vehicle and its key are kept.

CreateVehicleInput.model ● String! non-null scalar​

Name of the model, e.g. Fiesta. Created for the given brand if it does not exist yet.

CreateVehicleInput.parkId ● ResidentialParkID! non-null scalar​

The residential park this vehicle belongs to.

CreateVehicleInput.technicalInspectionValidTo ● Date scalar​

Date of validity of the vehicle's technical inspection (TÜV).

CreateVehicleInput.vin ● String scalar​

Chassis number of the vehicle (Fahrgestell- / Gestellnummer).

Member Of​

createVehicle mutation