Skip to content
TrackSafe365
v1.0 Dashboard →
POST /trucks Beta

Create Truck

Creates a truck from the supplied TruckDTO. Do not send id — it is server-assigned and returned in the response. Required fields are marked with an asterisk.

Parameters

Name In Type Description
model * body string Vehicle model. 1–250 characters. e.g. Cascadia
make * body string Manufacturer. 1–250 characters. e.g. Freightliner
unitNumber * body string Fleet unit number. 1–250 characters. e.g. 1042
vin * body string Vehicle Identification Number. 12–17 characters. e.g. 1FUJGLDR9CSBP1234
year * body integer Model year (e.g. 2022). e.g. 2022
active * body boolean Whether the truck is active in the fleet. truefalse
licensePlateNo * body string License plate number. e.g. TX-8842156
licensePlateIssueDate * body string Plate issue date (ISO 8601 date-time). e.g. 2024-03-01T00:00:00Z
licensePlateIssuingState * body string Issuing state — exactly 2 characters. e.g. TX
fuelType * body string Fuel type. DIESELGASOLINECNGLNGELECTRICHYBRID
vehicleType body string Vehicle class. Optional. TRACTORBOX_TRUCKVANTRAILERPICKUP
note body string Free-form note. e.g. Lane 4 long-haul tractor
integrationVin body string VIN as supplied by an upstream integration. e.g. 1FUJGLDR9CSBP1234

Response

Status: Beta. Try the request in the panel on the right to see a live response.