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
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports CRM.AgencyPlatform.API.Internal

Namespace Global

    Namespace CRM.AgencyPlatform.API.Internal

        Public Partial Class EquipmentVehicle
            Public Overridable Property EquipmentVehicleID As Integer
            Public Overridable Property EquipmentID As Integer
            Public Overridable Property UnitNumber As String
            Public Overridable Property VehicleType As String
            Public Overridable Property CapacityText As String
            Public Overridable Property CapacityTons As Decimal?
            Public Overridable Property DeckFeet As Decimal?
            Public Overridable Property Plate As String
            Public Overridable Property VIN As String
            Public Overridable Property GpsUnit As String
            Public Overridable Property InsuranceExpires As Date?
            Public Overridable Property InspectionDue As Date?
            Public Overridable Property Capabilities As String
            Public Overridable Property VehicleStatus As String
            Public Overridable Property VendorID As Integer?
            Public Overridable Property EquipmentName As String
            Public Overridable Property Ownership As String
            Public Overridable Property RentalVendor As String
            Public Overridable Property TruckCode As String
            Public Overridable Property RigCode As String
            Public Overridable Property BoardModule As String
            Public Overridable Property UpdatedAt As Date?
        End Class

        Public Partial Class EquipmentVehicleRequest
            Public Overridable Property EquipmentID As Integer
            Public Overridable Property Vehicle As EquipmentVehicle
        End Class

        Public Partial Class EquipmentVehicleResponse
            Public Overridable Property Vehicle As EquipmentVehicle
            Public Overridable Property Fleet As List(Of EquipmentVehicle) = New List(Of EquipmentVehicle)
            Public Overridable Property ResponseStatus As ResponseStatus
        End Class
    End Namespace
End Namespace

VB.NET EquipmentVehicleRequest DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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: application/json
Content-Type: application/json
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: application/json
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"}}}