iotoms Docs

List users assignable to vehicles

GET
/api/v1/ops/vehicles/assignable-users

Returns every user who has not been deleted, sorted by username, with their name, email and role. Use the userId values when assigning users to a vehicle.

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?array<>|

Users that can be assigned to a vehicle, sorted by username.

Example Request
curl -X GET 'https://beta.iotoms.com/api/v1/ops/vehicles/assignable-users'
Example Response
{  "status": "string",  "message": "string",  "data": [    {      "userId": 0,      "username": "string",      "firstName": "string",      "lastName": "string",      "email": "string",      "roleId": 0,      "roleKey": "string"    }  ]}