Trendsic Platform Service

<back to all web services

EquipmentVehicleStatusRequest

Requires Authentication
The following routes are available for this service:
POST,OPTIONS/v1/Equipment/{EquipmentID}/vehicle/status
EquipmentVehicleStatusRequest Parameters:
NameParameterData TypeRequiredDescription
EquipmentIDpathintNo
VehicleStatusbodystringNo
EquipmentVehicleResponse Parameters:
NameParameterData TypeRequiredDescription
VehicleformEquipmentVehicleNo
FleetformList<EquipmentVehicle>No
ResponseStatusformResponseStatusNo
EquipmentVehicle Parameters:
NameParameterData TypeRequiredDescription
EquipmentVehicleIDformintNo
EquipmentIDformintNo
UnitNumberformstringNo
VehicleTypeformstringNo
CapacityTextformstringNo
CapacityTonsformdecimal?No
DeckFeetformdecimal?No
PlateformstringNo
VINformstringNo
GpsUnitformstringNo
InsuranceExpiresformDateTime?No
InspectionDueformDateTime?No
CapabilitiesformstringNo
VehicleStatusformstringNo
VendorIDformint?No
EquipmentNameformstringNo
OwnershipformstringNo
RentalVendorformstringNo
OwnerContactIDformint?No
OwnerNameformstringNo
TruckCodeformstringNo
RigCodeformstringNo
BoardModuleformstringNo
UpdatedAtformDateTime?No
DvirRequiredformboolNo
GvwrLbsformint?No
IsTrailerformboolNo
ShopReasonformstringNo
ShopByDvirformboolNo

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

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /v1/Equipment/{EquipmentID}/vehicle/status HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<EquipmentVehicleStatusRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <EquipmentID>0</EquipmentID>
  <VehicleStatus>String</VehicleStatus>
</EquipmentVehicleStatusRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<EquipmentVehicleResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <Fleet>
    <EquipmentVehicle>
      <BoardModule>String</BoardModule>
      <Capabilities>String</Capabilities>
      <CapacityText>String</CapacityText>
      <CapacityTons>0</CapacityTons>
      <DeckFeet>0</DeckFeet>
      <DvirRequired>false</DvirRequired>
      <EquipmentID>0</EquipmentID>
      <EquipmentName>String</EquipmentName>
      <EquipmentVehicleID>0</EquipmentVehicleID>
      <GpsUnit>String</GpsUnit>
      <GvwrLbs>0</GvwrLbs>
      <InspectionDue>0001-01-01T00:00:00</InspectionDue>
      <InsuranceExpires>0001-01-01T00:00:00</InsuranceExpires>
      <IsTrailer>false</IsTrailer>
      <OwnerContactID>0</OwnerContactID>
      <OwnerName>String</OwnerName>
      <Ownership>String</Ownership>
      <Plate>String</Plate>
      <RentalVendor>String</RentalVendor>
      <RigCode>String</RigCode>
      <ShopByDvir>false</ShopByDvir>
      <ShopReason>String</ShopReason>
      <TruckCode>String</TruckCode>
      <UnitNumber>String</UnitNumber>
      <UpdatedAt>0001-01-01T00:00:00</UpdatedAt>
      <VIN>String</VIN>
      <VehicleStatus>String</VehicleStatus>
      <VehicleType>String</VehicleType>
      <VendorID>0</VendorID>
    </EquipmentVehicle>
  </Fleet>
  <ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
    <d2p1:ErrorCode>String</d2p1:ErrorCode>
    <d2p1:Message>String</d2p1:Message>
    <d2p1:StackTrace>String</d2p1:StackTrace>
    <d2p1:Errors>
      <d2p1:ResponseError>
        <d2p1:ErrorCode>String</d2p1:ErrorCode>
        <d2p1:FieldName>String</d2p1:FieldName>
        <d2p1:Message>String</d2p1:Message>
        <d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>String</d5p1:Key>
            <d5p1:Value>String</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
        </d2p1:Meta>
      </d2p1:ResponseError>
    </d2p1:Errors>
    <d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>String</d3p1:Key>
        <d3p1:Value>String</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
    </d2p1:Meta>
  </ResponseStatus>
  <Vehicle>
    <BoardModule>String</BoardModule>
    <Capabilities>String</Capabilities>
    <CapacityText>String</CapacityText>
    <CapacityTons>0</CapacityTons>
    <DeckFeet>0</DeckFeet>
    <DvirRequired>false</DvirRequired>
    <EquipmentID>0</EquipmentID>
    <EquipmentName>String</EquipmentName>
    <EquipmentVehicleID>0</EquipmentVehicleID>
    <GpsUnit>String</GpsUnit>
    <GvwrLbs>0</GvwrLbs>
    <InspectionDue>0001-01-01T00:00:00</InspectionDue>
    <InsuranceExpires>0001-01-01T00:00:00</InsuranceExpires>
    <IsTrailer>false</IsTrailer>
    <OwnerContactID>0</OwnerContactID>
    <OwnerName>String</OwnerName>
    <Ownership>String</Ownership>
    <Plate>String</Plate>
    <RentalVendor>String</RentalVendor>
    <RigCode>String</RigCode>
    <ShopByDvir>false</ShopByDvir>
    <ShopReason>String</ShopReason>
    <TruckCode>String</TruckCode>
    <UnitNumber>String</UnitNumber>
    <UpdatedAt>0001-01-01T00:00:00</UpdatedAt>
    <VIN>String</VIN>
    <VehicleStatus>String</VehicleStatus>
    <VehicleType>String</VehicleType>
    <VendorID>0</VendorID>
  </Vehicle>
</EquipmentVehicleResponse>