Reference for https://api.silentpassenger.com/rest/v2/{APIKEY}/Vehicles
Update vehicle record. This method will update VehicleName, Odometer, TripOdometer, CumHours and Notes fields.
Url: https://api.silentpassenger.com/rest/v2/{APIKEY}/Vehicles
HTTP Method: POST
| Message direction | Format | Body |
|---|---|---|
| Request | Xml | Example,Schema |
| Request | Json | Example |
| Response | Xml | Example,Schema |
| Response | Json | Example |
The following is an example request Xml body:
<DCLightVehicle xmlns="http://schemas.datacontract.org/2004/07/VTS.API.DataContracts"> <AssignTime>1999-05-31T11:20:00</AssignTime> <City>String content</City> <CumHours>1.26743237E+15</CumHours> <DriverName>String content</DriverName> <GroupName>String content</GroupName> <Heading>1.26743233E+15</Heading> <IO4Flip>true</IO4Flip> <IdleDuration>String content</IdleDuration> <In1Flip>true</In1Flip> <In2Flip>true</In2Flip> <In3Flip>true</In3Flip> <Latitude>1.26743233E+15</Latitude> <Longitude>1.26743233E+15</Longitude> <MobileGroupID>2147483647</MobileGroupID> <Odometer>1.26743237E+15</Odometer> <PlateNumber>String content</PlateNumber> <ReadingTime>1999-05-31T11:20:00</ReadingTime> <Speed>1.26743233E+15</Speed> <StartOfStopTime>1999-05-31T11:20:00</StartOfStopTime> <State>String content</State> <StatusID>2147483647</StatusID> <StopDuration>String content</StopDuration> <Street>String content</Street> <SubGroupID>2147483647</SubGroupID> <SubGroupName>String content</SubGroupName> <TripOdometer>1.26743237E+15</TripOdometer> <VehicleID>2147483647</VehicleID> <VehicleName>String content</VehicleName> <Zip>String content</Zip> <notes>String content</notes> <vin>String content</vin> </DCLightVehicle>
The following is an example request Json body:
{
"AssignTime":"\/Date(928164000000-0400)\/",
"City":"String content",
"CumHours":1.26743237E+15,
"DriverName":"String content",
"GroupName":"String content",
"Heading":1.26743233E+15,
"IO4Flip":true,
"IdleDuration":"String content",
"In1Flip":true,
"In2Flip":true,
"In3Flip":true,
"Latitude":1.26743233E+15,
"Longitude":1.26743233E+15,
"MobileGroupID":2147483647,
"Odometer":1.26743237E+15,
"PlateNumber":"String content",
"ReadingTime":"\/Date(928164000000-0400)\/",
"Speed":1.26743233E+15,
"StartOfStopTime":"\/Date(928164000000-0400)\/",
"State":"String content",
"StatusID":2147483647,
"StopDuration":"String content",
"Street":"String content",
"SubGroupID":2147483647,
"SubGroupName":"String content",
"TripOdometer":1.26743237E+15,
"VehicleID":2147483647,
"VehicleName":"String content",
"Zip":"String content",
"notes":"String content",
"vin":"String content"
}
The following is an example response Xml body:
<ResponseOfTypeDCLightVehicle xmlns="http://schemas.datacontract.org/2004/07/VTS.API.DataContracts">
<StatusCode>2147483647</StatusCode>
<Resources>
<DCLightVehicle>
<AssignTime>1999-05-31T11:20:00</AssignTime>
<City>String content</City>
<CumHours>1.26743237E+15</CumHours>
<DriverName>String content</DriverName>
<GroupName>String content</GroupName>
<Heading>1.26743233E+15</Heading>
<IO4Flip>true</IO4Flip>
<IdleDuration>String content</IdleDuration>
<In1Flip>true</In1Flip>
<In2Flip>true</In2Flip>
<In3Flip>true</In3Flip>
<Latitude>1.26743233E+15</Latitude>
<Longitude>1.26743233E+15</Longitude>
<MobileGroupID>2147483647</MobileGroupID>
<Odometer>1.26743237E+15</Odometer>
<PlateNumber>String content</PlateNumber>
<ReadingTime>1999-05-31T11:20:00</ReadingTime>
<Speed>1.26743233E+15</Speed>
<StartOfStopTime>1999-05-31T11:20:00</StartOfStopTime>
<State>String content</State>
<StatusID>2147483647</StatusID>
<StopDuration>String content</StopDuration>
<Street>String content</Street>
<SubGroupID>2147483647</SubGroupID>
<SubGroupName>String content</SubGroupName>
<TripOdometer>1.26743237E+15</TripOdometer>
<VehicleID>2147483647</VehicleID>
<VehicleName>String content</VehicleName>
<Zip>String content</Zip>
<notes>String content</notes>
<vin>String content</vin>
</DCLightVehicle>
<DCLightVehicle>
<AssignTime>1999-05-31T11:20:00</AssignTime>
<City>String content</City>
<CumHours>1.26743237E+15</CumHours>
<DriverName>String content</DriverName>
<GroupName>String content</GroupName>
<Heading>1.26743233E+15</Heading>
<IO4Flip>true</IO4Flip>
<IdleDuration>String content</IdleDuration>
<In1Flip>true</In1Flip>
<In2Flip>true</In2Flip>
<In3Flip>true</In3Flip>
<Latitude>1.26743233E+15</Latitude>
<Longitude>1.26743233E+15</Longitude>
<MobileGroupID>2147483647</MobileGroupID>
<Odometer>1.26743237E+15</Odometer>
<PlateNumber>String content</PlateNumber>
<ReadingTime>1999-05-31T11:20:00</ReadingTime>
<Speed>1.26743233E+15</Speed>
<StartOfStopTime>1999-05-31T11:20:00</StartOfStopTime>
<State>String content</State>
<StatusID>2147483647</StatusID>
<StopDuration>String content</StopDuration>
<Street>String content</Street>
<SubGroupID>2147483647</SubGroupID>
<SubGroupName>String content</SubGroupName>
<TripOdometer>1.26743237E+15</TripOdometer>
<VehicleID>2147483647</VehicleID>
<VehicleName>String content</VehicleName>
<Zip>String content</Zip>
<notes>String content</notes>
<vin>String content</vin>
</DCLightVehicle>
</Resources>
<ResourceCount>2147483647</ResourceCount>
<Status>String content</Status>
</ResponseOfTypeDCLightVehicle>
The following is an example response Json body:
{
"StatusCode":2147483647,
"Resources":[{
"AssignTime":"\/Date(928164000000-0400)\/",
"City":"String content",
"CumHours":1.26743237E+15,
"DriverName":"String content",
"GroupName":"String content",
"Heading":1.26743233E+15,
"IO4Flip":true,
"IdleDuration":"String content",
"In1Flip":true,
"In2Flip":true,
"In3Flip":true,
"Latitude":1.26743233E+15,
"Longitude":1.26743233E+15,
"MobileGroupID":2147483647,
"Odometer":1.26743237E+15,
"PlateNumber":"String content",
"ReadingTime":"\/Date(928164000000-0400)\/",
"Speed":1.26743233E+15,
"StartOfStopTime":"\/Date(928164000000-0400)\/",
"State":"String content",
"StatusID":2147483647,
"StopDuration":"String content",
"Street":"String content",
"SubGroupID":2147483647,
"SubGroupName":"String content",
"TripOdometer":1.26743237E+15,
"VehicleID":2147483647,
"VehicleName":"String content",
"Zip":"String content",
"notes":"String content",
"vin":"String content"
}],
"ResourceCount":2147483647,
"Status":"String content"
}
The following is the request Xml Schema:
<xs:schema xmlns:tns="http://schemas.datacontract.org/2004/07/VTS.API.DataContracts" elementFormDefault="qualified" targetNamespace="http://schemas.datacontract.org/2004/07/VTS.API.DataContracts" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:import namespace="http://schemas.datacontract.org/2004/07/VTS.API" />
<xs:complexType name="DCLightVehicle">
<xs:complexContent mixed="false">
<xs:extension xmlns:q1="http://schemas.datacontract.org/2004/07/VTS.API" base="q1:DataContractBase">
<xs:sequence>
<xs:element minOccurs="0" name="AssignTime" type="xs:dateTime" />
<xs:element minOccurs="0" name="City" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="CumHours" type="xs:float" />
<xs:element minOccurs="0" name="DriverName" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="GroupName" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="Heading" type="xs:double" />
<xs:element minOccurs="0" name="IO4Flip" type="xs:boolean" />
<xs:element minOccurs="0" name="IdleDuration" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="In1Flip" type="xs:boolean" />
<xs:element minOccurs="0" name="In2Flip" type="xs:boolean" />
<xs:element minOccurs="0" name="In3Flip" type="xs:boolean" />
<xs:element minOccurs="0" name="Latitude" type="xs:double" />
<xs:element minOccurs="0" name="Longitude" type="xs:double" />
<xs:element minOccurs="0" name="MobileGroupID" type="xs:int" />
<xs:element minOccurs="0" name="Odometer" type="xs:float" />
<xs:element minOccurs="0" name="PlateNumber" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="ReadingTime" type="xs:dateTime" />
<xs:element minOccurs="0" name="Speed" type="xs:double" />
<xs:element minOccurs="0" name="StartOfStopTime" type="xs:dateTime" />
<xs:element minOccurs="0" name="State" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="StatusID" type="xs:int" />
<xs:element minOccurs="0" name="StopDuration" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="Street" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="SubGroupID" type="xs:int" />
<xs:element minOccurs="0" name="SubGroupName" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="TripOdometer" type="xs:float" />
<xs:element minOccurs="0" name="VehicleID" type="xs:int" />
<xs:element minOccurs="0" name="VehicleName" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="Zip" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="notes" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="vin" nillable="true" type="xs:string" />
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:element name="DCLightVehicle" nillable="true" type="tns:DCLightVehicle" />
</xs:schema>
Additional request Xml Schemas:
<xs:schema xmlns:tns="http://schemas.microsoft.com/2003/10/Serialization/" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://schemas.microsoft.com/2003/10/Serialization/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="anyType" nillable="true" type="xs:anyType" />
<xs:element name="anyURI" nillable="true" type="xs:anyURI" />
<xs:element name="base64Binary" nillable="true" type="xs:base64Binary" />
<xs:element name="boolean" nillable="true" type="xs:boolean" />
<xs:element name="byte" nillable="true" type="xs:byte" />
<xs:element name="dateTime" nillable="true" type="xs:dateTime" />
<xs:element name="decimal" nillable="true" type="xs:decimal" />
<xs:element name="double" nillable="true" type="xs:double" />
<xs:element name="float" nillable="true" type="xs:float" />
<xs:element name="int" nillable="true" type="xs:int" />
<xs:element name="long" nillable="true" type="xs:long" />
<xs:element name="QName" nillable="true" type="xs:QName" />
<xs:element name="short" nillable="true" type="xs:short" />
<xs:element name="string" nillable="true" type="xs:string" />
<xs:element name="unsignedByte" nillable="true" type="xs:unsignedByte" />
<xs:element name="unsignedInt" nillable="true" type="xs:unsignedInt" />
<xs:element name="unsignedLong" nillable="true" type="xs:unsignedLong" />
<xs:element name="unsignedShort" nillable="true" type="xs:unsignedShort" />
<xs:element name="char" nillable="true" type="tns:char" />
<xs:simpleType name="char">
<xs:restriction base="xs:int" />
</xs:simpleType>
<xs:element name="duration" nillable="true" type="tns:duration" />
<xs:simpleType name="duration">
<xs:restriction base="xs:duration">
<xs:pattern value="\-?P(\d*D)?(T(\d*H)?(\d*M)?(\d*(\.\d*)?S)?)?" />
<xs:minInclusive value="-P10675199DT2H48M5.4775808S" />
<xs:maxInclusive value="P10675199DT2H48M5.4775807S" />
</xs:restriction>
</xs:simpleType>
<xs:element name="guid" nillable="true" type="tns:guid" />
<xs:simpleType name="guid">
<xs:restriction base="xs:string">
<xs:pattern value="[\da-fA-F]{8}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{12}" />
</xs:restriction>
</xs:simpleType>
<xs:attribute name="FactoryType" type="xs:QName" />
<xs:attribute name="Id" type="xs:ID" />
<xs:attribute name="Ref" type="xs:IDREF" />
</xs:schema>
<xs:schema xmlns:tns="http://schemas.datacontract.org/2004/07/VTS.API" elementFormDefault="qualified" targetNamespace="http://schemas.datacontract.org/2004/07/VTS.API" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:complexType name="DataContractBase">
<xs:sequence />
</xs:complexType>
<xs:element name="DataContractBase" nillable="true" type="tns:DataContractBase" />
</xs:schema>
<tns:schema targetNamespace="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://www.w3.org/2001/XMLSchema">
<tns:element name="schema">
<tns:complexType />
</tns:element>
</tns:schema>
The following is the response Xml Schema:
<xs:schema xmlns:tns="http://schemas.datacontract.org/2004/07/VTS.API.DataContracts" elementFormDefault="qualified" targetNamespace="http://schemas.datacontract.org/2004/07/VTS.API.DataContracts" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:import namespace="http://schemas.datacontract.org/2004/07/VTS.API" />
<xs:complexType name="ResponseOfTypeDCLightVehicle">
<xs:annotation>
<xs:appinfo>
<GenericType Name="ResponseOfType{0}" Namespace="http://schemas.datacontract.org/2004/07/VTS.API.DataContracts" xmlns="http://schemas.microsoft.com/2003/10/Serialization/">
<GenericParameter Name="DCLightVehicle" Namespace="http://schemas.datacontract.org/2004/07/VTS.API.DataContracts" />
</GenericType>
</xs:appinfo>
</xs:annotation>
<xs:sequence>
<xs:element minOccurs="0" name="StatusCode" type="xs:int" />
<xs:element minOccurs="0" name="Resources" nillable="true" type="tns:ArrayOfDCLightVehicle" />
<xs:element minOccurs="0" name="ResourceCount" type="xs:int" />
<xs:element minOccurs="0" name="Status" nillable="true" type="xs:string" />
</xs:sequence>
</xs:complexType>
<xs:element name="ResponseOfTypeDCLightVehicle" nillable="true" type="tns:ResponseOfTypeDCLightVehicle" />
<xs:complexType name="ArrayOfDCLightVehicle">
<xs:sequence>
<xs:element minOccurs="0" maxOccurs="unbounded" name="DCLightVehicle" nillable="true" type="tns:DCLightVehicle" />
</xs:sequence>
</xs:complexType>
<xs:element name="ArrayOfDCLightVehicle" nillable="true" type="tns:ArrayOfDCLightVehicle" />
<xs:complexType name="DCLightVehicle">
<xs:complexContent mixed="false">
<xs:extension xmlns:q1="http://schemas.datacontract.org/2004/07/VTS.API" base="q1:DataContractBase">
<xs:sequence>
<xs:element minOccurs="0" name="AssignTime" type="xs:dateTime" />
<xs:element minOccurs="0" name="City" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="CumHours" type="xs:float" />
<xs:element minOccurs="0" name="DriverName" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="GroupName" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="Heading" type="xs:double" />
<xs:element minOccurs="0" name="IO4Flip" type="xs:boolean" />
<xs:element minOccurs="0" name="IdleDuration" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="In1Flip" type="xs:boolean" />
<xs:element minOccurs="0" name="In2Flip" type="xs:boolean" />
<xs:element minOccurs="0" name="In3Flip" type="xs:boolean" />
<xs:element minOccurs="0" name="Latitude" type="xs:double" />
<xs:element minOccurs="0" name="Longitude" type="xs:double" />
<xs:element minOccurs="0" name="MobileGroupID" type="xs:int" />
<xs:element minOccurs="0" name="Odometer" type="xs:float" />
<xs:element minOccurs="0" name="PlateNumber" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="ReadingTime" type="xs:dateTime" />
<xs:element minOccurs="0" name="Speed" type="xs:double" />
<xs:element minOccurs="0" name="StartOfStopTime" type="xs:dateTime" />
<xs:element minOccurs="0" name="State" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="StatusID" type="xs:int" />
<xs:element minOccurs="0" name="StopDuration" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="Street" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="SubGroupID" type="xs:int" />
<xs:element minOccurs="0" name="SubGroupName" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="TripOdometer" type="xs:float" />
<xs:element minOccurs="0" name="VehicleID" type="xs:int" />
<xs:element minOccurs="0" name="VehicleName" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="Zip" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="notes" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="vin" nillable="true" type="xs:string" />
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:element name="DCLightVehicle" nillable="true" type="tns:DCLightVehicle" />
</xs:schema>
Additional response Xml Schemas:
<xs:schema xmlns:tns="http://schemas.microsoft.com/2003/10/Serialization/" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://schemas.microsoft.com/2003/10/Serialization/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="anyType" nillable="true" type="xs:anyType" />
<xs:element name="anyURI" nillable="true" type="xs:anyURI" />
<xs:element name="base64Binary" nillable="true" type="xs:base64Binary" />
<xs:element name="boolean" nillable="true" type="xs:boolean" />
<xs:element name="byte" nillable="true" type="xs:byte" />
<xs:element name="dateTime" nillable="true" type="xs:dateTime" />
<xs:element name="decimal" nillable="true" type="xs:decimal" />
<xs:element name="double" nillable="true" type="xs:double" />
<xs:element name="float" nillable="true" type="xs:float" />
<xs:element name="int" nillable="true" type="xs:int" />
<xs:element name="long" nillable="true" type="xs:long" />
<xs:element name="QName" nillable="true" type="xs:QName" />
<xs:element name="short" nillable="true" type="xs:short" />
<xs:element name="string" nillable="true" type="xs:string" />
<xs:element name="unsignedByte" nillable="true" type="xs:unsignedByte" />
<xs:element name="unsignedInt" nillable="true" type="xs:unsignedInt" />
<xs:element name="unsignedLong" nillable="true" type="xs:unsignedLong" />
<xs:element name="unsignedShort" nillable="true" type="xs:unsignedShort" />
<xs:element name="char" nillable="true" type="tns:char" />
<xs:simpleType name="char">
<xs:restriction base="xs:int" />
</xs:simpleType>
<xs:element name="duration" nillable="true" type="tns:duration" />
<xs:simpleType name="duration">
<xs:restriction base="xs:duration">
<xs:pattern value="\-?P(\d*D)?(T(\d*H)?(\d*M)?(\d*(\.\d*)?S)?)?" />
<xs:minInclusive value="-P10675199DT2H48M5.4775808S" />
<xs:maxInclusive value="P10675199DT2H48M5.4775807S" />
</xs:restriction>
</xs:simpleType>
<xs:element name="guid" nillable="true" type="tns:guid" />
<xs:simpleType name="guid">
<xs:restriction base="xs:string">
<xs:pattern value="[\da-fA-F]{8}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{12}" />
</xs:restriction>
</xs:simpleType>
<xs:attribute name="FactoryType" type="xs:QName" />
<xs:attribute name="Id" type="xs:ID" />
<xs:attribute name="Ref" type="xs:IDREF" />
</xs:schema>
<xs:schema xmlns:tns="http://schemas.datacontract.org/2004/07/VTS.API" elementFormDefault="qualified" targetNamespace="http://schemas.datacontract.org/2004/07/VTS.API" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:complexType name="DataContractBase">
<xs:sequence />
</xs:complexType>
<xs:element name="DataContractBase" nillable="true" type="tns:DataContractBase" />
</xs:schema>
<tns:schema targetNamespace="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://www.w3.org/2001/XMLSchema">
<tns:element name="schema">
<tns:complexType />
</tns:element>
</tns:schema>