How to: Create a Vehicle

For information about prerequisites, see Creating Vehicle.

To create your first Vehicle, call the Create Vehicle endpoint and pass a request similar to the following:

{
  "vehicleName": "Semi Truck",
  "vehicleCode": "MH01A1234",
  "vehicleOwnerId": "participant:b03369f6-9d60-4f6e-bc06-2dd2e74d9ea1",
  "vehicleCategory": "Truck",
  "vehicleSubCategory": "Van",
  "vehicleOwnership": "self",
  "vehicleMode": "Land",
  "fuelType": "Petrol",
  "regnNo": "MH 01 AA 1234",
  "regnYear": 2020,
  "vehicleStructure": "Single-unit",
  "cargoArea": 100,
  "payloadCapacity": 100,
  "operatorId": "ID",
  "availability": {
    "days": [
      "Mon",
      "Tue",
      "Wed"
    ]
  },
  "ownerDetails": {
    "name": "John Doe",
    "contact": "8382372232"
  },
  "serviceability": {
    "cities": [
      "Mumbai",
      "Delhi" ]
  },
  "reportingCenter": "facilities:4d6e7125-aaa3-4ea1-9fd4-44c4f1cad179"
}

To know more about the members used for creating a Vehicle, check out the Vehicle API documentation.