Trendsic Platform Service

<back to all web services

EquipmentVehicleRequest

Requires Authentication
The following routes are available for this service:
GET,PUT,OPTIONS/v1/Equipment/{EquipmentID}/vehicle
namespace CRM.AgencyPlatform.API.Internal

open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations

    [<AllowNullLiteral>]
    type EquipmentVehicle() = 
        member val EquipmentVehicleID:Int32 = new Int32() with get,set
        member val EquipmentID:Int32 = new Int32() with get,set
        member val UnitNumber:String = null with get,set
        member val VehicleType:String = null with get,set
        member val CapacityText:String = null with get,set
        member val CapacityTons:Nullable<Decimal> = new Nullable<Decimal>() with get,set
        member val DeckFeet:Nullable<Decimal> = new Nullable<Decimal>() with get,set
        member val Plate:String = null with get,set
        member val VIN:String = null with get,set
        member val GpsUnit:String = null with get,set
        member val InsuranceExpires:Nullable<DateTime> = new Nullable<DateTime>() with get,set
        member val InspectionDue:Nullable<DateTime> = new Nullable<DateTime>() with get,set
        member val Capabilities:String = null with get,set
        member val VehicleStatus:String = null with get,set
        member val VendorID:Nullable<Int32> = new Nullable<Int32>() with get,set
        member val EquipmentName:String = null with get,set
        member val Ownership:String = null with get,set
        member val RentalVendor:String = null with get,set
        member val TruckCode:String = null with get,set
        member val RigCode:String = null with get,set
        member val BoardModule:String = null with get,set
        member val UpdatedAt:Nullable<DateTime> = new Nullable<DateTime>() with get,set

    [<AllowNullLiteral>]
    type EquipmentVehicleResponse() = 
        member val Vehicle:EquipmentVehicle = null with get,set
        member val Fleet:ResizeArray<EquipmentVehicle> = new ResizeArray<EquipmentVehicle>() with get,set
        member val ResponseStatus:ResponseStatus = null with get,set

    [<AllowNullLiteral>]
    type EquipmentVehicleRequest() = 
        member val EquipmentID:Int32 = new Int32() with get,set
        member val Vehicle:EquipmentVehicle = null with get,set

F# EquipmentVehicleRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

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/csv
Content-Type: text/csv
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/csv
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"}}}