| GET,PUT,OPTIONS | /v1/Equipment/{EquipmentID}/vehicle |
|---|
"use strict";
export class EquipmentVehicle {
/** @param {{EquipmentVehicleID?:number,EquipmentID?:number,UnitNumber?:string,VehicleType?:string,CapacityText?:string,CapacityTons?:number,DeckFeet?:number,Plate?:string,VIN?:string,GpsUnit?:string,InsuranceExpires?:string,InspectionDue?:string,Capabilities?:string,VehicleStatus?:string,VendorID?:number,EquipmentName?:string,Ownership?:string,RentalVendor?:string,TruckCode?:string,RigCode?:string,BoardModule?:string,UpdatedAt?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
EquipmentVehicleID;
/** @type {number} */
EquipmentID;
/** @type {string} */
UnitNumber;
/** @type {string} */
VehicleType;
/** @type {string} */
CapacityText;
/** @type {?number} */
CapacityTons;
/** @type {?number} */
DeckFeet;
/** @type {string} */
Plate;
/** @type {string} */
VIN;
/** @type {string} */
GpsUnit;
/** @type {?string} */
InsuranceExpires;
/** @type {?string} */
InspectionDue;
/** @type {string} */
Capabilities;
/** @type {string} */
VehicleStatus;
/** @type {?number} */
VendorID;
/** @type {string} */
EquipmentName;
/** @type {string} */
Ownership;
/** @type {string} */
RentalVendor;
/** @type {string} */
TruckCode;
/** @type {string} */
RigCode;
/** @type {string} */
BoardModule;
/** @type {?string} */
UpdatedAt;
}
export class EquipmentVehicleResponse {
/** @param {{Vehicle?:EquipmentVehicle,Fleet?:EquipmentVehicle[],ResponseStatus?:ResponseStatus}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {EquipmentVehicle} */
Vehicle;
/** @type {EquipmentVehicle[]} */
Fleet = [];
/** @type {ResponseStatus} */
ResponseStatus;
}
export class EquipmentVehicleRequest {
/** @param {{EquipmentID?:number,Vehicle?:EquipmentVehicle}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
EquipmentID;
/** @type {EquipmentVehicle} */
Vehicle;
}
JavaScript EquipmentVehicleRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
PUT /v1/Equipment/{EquipmentID}/vehicle HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"EquipmentID":0,"Vehicle":{"EquipmentVehicleID":0,"EquipmentID":0,"UnitNumber":"String","VehicleType":"String","CapacityText":"String","CapacityTons":0,"DeckFeet":0,"Plate":"String","VIN":"String","GpsUnit":"String","InsuranceExpires":"0001-01-01T00:00:00.0000000","InspectionDue":"0001-01-01T00:00:00.0000000","Capabilities":"String","VehicleStatus":"String","VendorID":0,"EquipmentName":"String","Ownership":"String","RentalVendor":"String","TruckCode":"String","RigCode":"String","BoardModule":"String","UpdatedAt":"0001-01-01T00:00:00.0000000"}}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"Vehicle":{"EquipmentVehicleID":0,"EquipmentID":0,"UnitNumber":"String","VehicleType":"String","CapacityText":"String","CapacityTons":0,"DeckFeet":0,"Plate":"String","VIN":"String","GpsUnit":"String","InsuranceExpires":"0001-01-01T00:00:00.0000000","InspectionDue":"0001-01-01T00:00:00.0000000","Capabilities":"String","VehicleStatus":"String","VendorID":0,"EquipmentName":"String","Ownership":"String","RentalVendor":"String","TruckCode":"String","RigCode":"String","BoardModule":"String","UpdatedAt":"0001-01-01T00:00:00.0000000"},"Fleet":[{"EquipmentVehicleID":0,"EquipmentID":0,"UnitNumber":"String","VehicleType":"String","CapacityText":"String","CapacityTons":0,"DeckFeet":0,"Plate":"String","VIN":"String","GpsUnit":"String","InsuranceExpires":"0001-01-01T00:00:00.0000000","InspectionDue":"0001-01-01T00:00:00.0000000","Capabilities":"String","VehicleStatus":"String","VendorID":0,"EquipmentName":"String","Ownership":"String","RentalVendor":"String","TruckCode":"String","RigCode":"String","BoardModule":"String","UpdatedAt":"0001-01-01T00:00:00.0000000"}],"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}