iotoms Docs

Get the caller's assigned vehicle

GET
/api/v1/ops/vehicles/assigned

Returns the vehicle currently assigned to the signed-in user, or no data if none is assigned.

Authorization

BearerAuth
headerAuthorizationBearer <JWT>

Header Parameters

Response Body

OK

*/*
  1. response
status*string

Outcome of the call: SUCCESS when the request was handled, ERROR otherwise.

message*string

Short 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  }}