Get the caller's assigned vehicle
GET
Returns the vehicle currently assigned to the signed-in user, or no data if none is assigned.
BearerAuthheader
AuthorizationBearer <JWT>OK
*/*- response
status*stringOutcome of the call: SUCCESS when the request was handled, ERROR otherwise.
message*stringShort human-readable message describing the outcome, e.g. which record was fetched or saved.
data?The vehicle currently assigned to the signed-in user (id, number, label, type, status, last odometer), or empty if none.
Example Request
curl -X GET 'https://beta.iotoms.com/api/v1/ops/vehicles/assigned'Example Response
{ "status": "string", "message": "string", "data": { "vehicleId": "c406adf4-e700-4483-ad7a-e7447a2941cb", "vehicleNumber": "string", "vehicleLabel": "string", "vehicleType": "VAN", "status": "ACTIVE", "lastOdometerKm": 0 }}