Website logo
Docs
API Reference
Postman Collection
Release Notes
Navigate through spaces
⌘K
Introduction
Overview
Getting started with the OS1 Platform
Getting started with building Apps
Concepts
Working with Callbacks
Console UI Overview
Custom Code
Working with GraphQL
Custom Attributes Ownership
Attribute-Based Access Control (ABAC)
Data Listing and Query (DLQS) Search
Core API dev guides
Overview
Authentication And Authorization
Participant
Container
Dispatch
Orchestrator
Workflow
Secure Data Storage
File Management
State Machine
Entity
Notification
Motion Tracking System
Location
Platform Order Management
Address
Scheduler
Logistics Framework API Dev guides
Overview
LogisticsOrder API
User API
Facility API
Vehicle API
How-To Guides
Integrate Your Application with Console UI
Integrate with Participants
Integrate with Containers
Integrate with Users
Integrate with Vehicles
Integrate with Facilities
Integrate with Entities
Integrate with Dispatch
Integrate with Logistics Order
Integrate with Platform Order Management
Integrate with Location Service
Integrate with Orchestrator
GraphQl Schemas
GraphQL: Dispatch Queries
GraphQL: Order Queries
GraphQL: Workflow Queries
GraphQL: Container Queries
Platform SDKs
SDK Overview
Sample Apps
Vehicle Management App
Container App
Resources
FAQs
Glossary
Data Types Used in OS1
Development Guidelines
Entity, Event, and Reason Codes
Service/API Level Error Codes
Docs powered by Archbee
Logistics Framework API Dev gu...
Vehicle API

Creating Vehicles

1min

For creating a vehicle, call the Creating Vehicles endpoint and specify the following parameters in the request body:

Member

Description

Remarks

modelName

Name of the vehicle to be Created

Data type: string

ownerName

The ID of the vehicle owner

Data type: string

referenceNumber

Unique ID of the vehicle

Data type: string

vehicleCategory

Category of the Vehicle.

Data type: string

vehicleSubCategory

Subcategory of the Vehicle.

Data type: string

ownershipType

The owner of the vehicle among self/seller/partner.

Data type: string

registrationNumber

The registration number of the vehicle as in the records.

Data type: string

The following example request body shows how to create and update a Vehicle named Semi Truck:

Create Vehicle
Update Vehicle
{
  "modelName": "Semi Truck",
  "ownerName": "users:1234-5467-4456",
  "referenceNumber": "63419231",
  "operator": "user:b03369f6-9d60-4f6e-bc06-2dd2e74d9ea1",
  "vehicleCategory": "Truck",
  "vehicleSubCategory": "Bike",
  "ownershipType": "Tenant",
  "vehicleMode": "Land",
  "fuelType": "Petrol",
  "registrationNumber": "1ABC234",
  "registrationYear": 2020,
  "vehicleStructure": "Single-unit",
  "modelYear": 2022,
  "reportingCenter": "oofacilities:4d6e7125-aaa3-4ea1-9fd4-44c4f1cad179",
  "numberOfJobs": 10,
  "totalDistance": 34,
  "totalTravelTime": 4,
  "totalLateTime": 1,
  "payload": 100,
  "payloadVolumetric": 15,
  "costPerMonth": 1000,
  "numberOfDays": 19,
  "ratePerHr": 16,
  "ratePerKm": 13,
  "fuelTankCapacity": 12,
  "batteryCapacity": 5,
  "vehicleType": "4-wheeler",
  "containerDimensions": "15*20*17",
  "teams": [
    "teams:2452-2253-2223-3332",
    "teams:5437-2273-8972-3345"
  ]
}




Updated 08 Aug 2023
Did this page help you?
PREVIOUS
Vehicle Attributes
NEXT
Vehicle Lifecycle
Docs powered by Archbee
Docs powered by Archbee