POST Api/Vehicle
Request Information
URI Parameters
None.
Body Parameters
VehicleParameterName | Description | Type | Additional information |
---|---|---|---|
ClientID | globally unique identifier |
None. |
|
PartnerID | globally unique identifier |
None. |
|
VehicleID | globally unique identifier |
None. |
|
IMEINo | string |
None. |
|
GroupID | globally unique identifier |
None. |
|
OrderID | globally unique identifier |
None. |
Request Formats
application/json, text/json
Sample:
{ "ClientID": "3a0b8143-ef59-426b-ab96-7e42b31c133f", "PartnerID": "4a1f3583-670b-4b60-b7c9-42dcbefe6371", "VehicleID": "dbfcb586-95f7-482d-8d78-fc4b23731e4c", "IMEINo": "sample string 4", "GroupID": "32825e90-cf09-4594-b72b-2d3b38ea6e25", "OrderID": "33910224-71dc-470e-ac42-b5f0c1138643" }
application/xml, text/xml
Sample:
<VehicleParameter xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Fleetroot.Entity"> <ClientID>3a0b8143-ef59-426b-ab96-7e42b31c133f</ClientID> <GroupID>32825e90-cf09-4594-b72b-2d3b38ea6e25</GroupID> <IMEINo>sample string 4</IMEINo> <OrderID>33910224-71dc-470e-ac42-b5f0c1138643</OrderID> <PartnerID>4a1f3583-670b-4b60-b7c9-42dcbefe6371</PartnerID> <VehicleID>dbfcb586-95f7-482d-8d78-fc4b23731e4c</VehicleID> </VehicleParameter>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
VehicleViewModelName | Description | Type | Additional information |
---|---|---|---|
VehicleNo | string |
None. |
|
Color | string |
None. |
|
Odometer | integer |
None. |
|
Year | string |
None. |
|
VehicleGroup | VehicleGroupViewModel |
None. |
|
VehicleModel | VehicleModelViewModel |
None. |
|
VehicleType | VehicleType |
None. |
|
FuelType | FuelType |
None. |
|
FuelTankCapacity | integer |
None. |
|
Registration | document_detail_view_model |
None. |
|
Insurance | document_detail_view_model |
None. |
|
AdditionalInfo | AdditionInfo |
None. |
|
TempSensor1 | TempSensorViewModel |
None. |
|
TempSensor2 | TempSensorViewModel |
None. |
|
TempSensor3 | TempSensorViewModel |
None. |
|
TempSensor4 | TempSensorViewModel |
None. |
|
Humidity1 | TempSensorViewModel |
None. |
|
Humidity2 | TempSensorViewModel |
None. |
|
Humidity3 | TempSensorViewModel |
None. |
|
Humidity4 | TempSensorViewModel |
None. |
Response Formats
application/json, text/json
Sample:
{ "VehicleNo": "sample string 1", "Color": "sample string 2", "Odometer": 3, "Year": "sample string 4", "VehicleGroup": { "Name": "sample string 1" }, "VehicleModel": { "Name": "sample string 1", "WeightCapacity": 2, "VolumeCapacity": 3 }, "VehicleType": 0, "FuelType": 0, "FuelTankCapacity": 1, "Registration": { "DocumentType": 1, "ReferenceNo": "sample string 2", "StartDate": "2025-05-20T21:56:12.3312457+04:00", "ExpiryDate": "2025-05-20T21:56:12.3312457+04:00", "Attachment": { "ImageString": "sample string 1" } }, "Insurance": { "DocumentType": 1, "ReferenceNo": "sample string 2", "StartDate": "2025-05-20T21:56:12.3312457+04:00", "ExpiryDate": "2025-05-20T21:56:12.3312457+04:00", "Attachment": { "ImageString": "sample string 1" } }, "AdditionalInfo": { "EngineNumber": "sample string 1", "ChassisNumber": "sample string 2" }, "TempSensor1": { "IsEnabled": true, "Name": "sample string 2", "Value": 3.1 }, "TempSensor2": { "IsEnabled": true, "Name": "sample string 2", "Value": 3.1 }, "TempSensor3": { "IsEnabled": true, "Name": "sample string 2", "Value": 3.1 }, "TempSensor4": { "IsEnabled": true, "Name": "sample string 2", "Value": 3.1 }, "Humidity1": { "IsEnabled": true, "Name": "sample string 2", "Value": 3.1 }, "Humidity2": { "IsEnabled": true, "Name": "sample string 2", "Value": 3.1 }, "Humidity3": { "IsEnabled": true, "Name": "sample string 2", "Value": 3.1 }, "Humidity4": { "IsEnabled": true, "Name": "sample string 2", "Value": 3.1 } }
application/xml, text/xml
Sample:
<VehicleViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FleetrootDriver.Service.Models"> <AdditionalInfo xmlns:d2p1="http://schemas.datacontract.org/2004/07/Fleetroot.Entity"> <d2p1:ChassisNumber>sample string 2</d2p1:ChassisNumber> <d2p1:EngineNumber>sample string 1</d2p1:EngineNumber> </AdditionalInfo> <Color>sample string 2</Color> <FuelTankCapacity>1</FuelTankCapacity> <FuelType>Petrol</FuelType> <Humidity1> <IsEnabled>true</IsEnabled> <Name>sample string 2</Name> <Value>3.1</Value> </Humidity1> <Humidity2> <IsEnabled>true</IsEnabled> <Name>sample string 2</Name> <Value>3.1</Value> </Humidity2> <Humidity3> <IsEnabled>true</IsEnabled> <Name>sample string 2</Name> <Value>3.1</Value> </Humidity3> <Humidity4> <IsEnabled>true</IsEnabled> <Name>sample string 2</Name> <Value>3.1</Value> </Humidity4> <Insurance> <Attachment xmlns:d3p1="http://schemas.datacontract.org/2004/07/FleetrootDriver.Service"> <d3p1:ImageString>sample string 1</d3p1:ImageString> </Attachment> <DocumentType>1</DocumentType> <ExpiryDate xmlns:d3p1="http://schemas.datacontract.org/2004/07/System"> <d3p1:DateTime>2025-05-20T17:56:12.3312457Z</d3p1:DateTime> <d3p1:OffsetMinutes>240</d3p1:OffsetMinutes> </ExpiryDate> <ReferenceNo>sample string 2</ReferenceNo> <StartDate xmlns:d3p1="http://schemas.datacontract.org/2004/07/System"> <d3p1:DateTime>2025-05-20T17:56:12.3312457Z</d3p1:DateTime> <d3p1:OffsetMinutes>240</d3p1:OffsetMinutes> </StartDate> </Insurance> <Odometer>3</Odometer> <Registration> <Attachment xmlns:d3p1="http://schemas.datacontract.org/2004/07/FleetrootDriver.Service"> <d3p1:ImageString>sample string 1</d3p1:ImageString> </Attachment> <DocumentType>1</DocumentType> <ExpiryDate xmlns:d3p1="http://schemas.datacontract.org/2004/07/System"> <d3p1:DateTime>2025-05-20T17:56:12.3312457Z</d3p1:DateTime> <d3p1:OffsetMinutes>240</d3p1:OffsetMinutes> </ExpiryDate> <ReferenceNo>sample string 2</ReferenceNo> <StartDate xmlns:d3p1="http://schemas.datacontract.org/2004/07/System"> <d3p1:DateTime>2025-05-20T17:56:12.3312457Z</d3p1:DateTime> <d3p1:OffsetMinutes>240</d3p1:OffsetMinutes> </StartDate> </Registration> <TempSensor1> <IsEnabled>true</IsEnabled> <Name>sample string 2</Name> <Value>3.1</Value> </TempSensor1> <TempSensor2> <IsEnabled>true</IsEnabled> <Name>sample string 2</Name> <Value>3.1</Value> </TempSensor2> <TempSensor3> <IsEnabled>true</IsEnabled> <Name>sample string 2</Name> <Value>3.1</Value> </TempSensor3> <TempSensor4> <IsEnabled>true</IsEnabled> <Name>sample string 2</Name> <Value>3.1</Value> </TempSensor4> <VehicleGroup> <Name>sample string 1</Name> </VehicleGroup> <VehicleModel> <Name>sample string 1</Name> <VolumeCapacity>3</VolumeCapacity> <WeightCapacity>2</WeightCapacity> </VehicleModel> <VehicleNo>sample string 1</VehicleNo> <VehicleType>None</VehicleType> <Year>sample string 4</Year> </VehicleViewModel>