- Mock serverhttps://otm-api-spec.redocly.app/_mock/api/5.9/otm/api/v5/vehicles/{UUID}
- https://example.comhttps://example.com/api/v5/vehicles/{UUID}
curl -i -X GET \
'https://otm-api-spec.redocly.app/_mock/api/5.9/otm/api/v5/vehicles/{UUID}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Returned the entity with the provided UUID
Uniquely identifies this entity. A URI can be assigned by the client to indicate where more information can be retrieved. Note that every entity always has a unique EntityId. However since, OTM5.2 it is not required to send it in the request. One can be generated for you by the server.
The last modified date of this entity. If none is given the creation date is used instead.
The context events provides some optional information about the events that can provide additional information on the current state of this entity.
For example: your system might send ETA information for the arrival of a vehicle on a location. To make it clear what caused this ETA to be updated, we can include some information about what caused this ETA update by including an event as context. If your ETA update was caused by a location update, this event can be included as context. If the ETA was caused by a traffic accident on the route of the vehicle, you can include that event in the context.
Standardized identifiers of this entity as known in external systems. Use this to exchange repeatable partner or system specific identifiers without overloading externalAttributes.
[ { "id": "AAA", "scheme": "CAS" } ]
The types of fuel the vehicle runs on.
[ { "fuelType": "electricity", "averageConsumption": { … } }, { "fuelType": "petrol", "averageConsumption": { … } } ]
Classification labels that can be used to indicate regulatory classes for this vehicle, such as Euro emission standard and CO2 emission class.
[ { "type": "emissionClassCO2", "value": "1" }, { "type": "emissionStandard", "value": "euro6" } ]
The load capacities of the Vehicle. This can be an array of values, for several reasons:
- The
Vehiclemight be split up in multiple compartments. - You might want to express the load capacities in different quantities. E.g. in square meters or litres as well as in number of pallets.
[ { "value": 1000, "unit": "kg" } ]
There are multiple roles in which actors can be associated with a vehicle, such as the owner or the driver of the vehicle.
All actions that are/were related to this vehicle, such as attaching or detaching transport equipment.
Vehicles might have some sensors that are permanently attached, these can be described using the sensors field. If one works with detachable sensors the recommend approach is to use associationCreated and associationRemoved events instead.
The type of fuel the vehicle runs on. For vehicle without an engine of their own, such as a trailer, you may choose not-applicable. For trailers with cooling capabilities, choose the fuel type of the cooling engine.
The average fuel consumption for this vehicle. Usually measured in distance per 100l
{ "id": "b9bb914d-845e-46f2-91ff-31fa4bac2fbe", "name": "Bob's Boxtruck", "vehicleType": "boxtruck", "fuels": [ { … }, { … } ], "loadCapacities": [ { … } ], "length": { "value": 8, "unit": "m" }, "height": { "value": 2.8, "unit": "m" }, "width": { "value": 2, "unit": "m" }, "licensePlate": "AB-12-CD", "emptyWeight": { "value": 2000, "unit": "kg" }, "emissionClasses": [ { … }, { … } ] }