get company drivers list
GET
/company/{company_id}/driverGet a list of drivers for a company
Request
Path Params
company_id
integer
required
ID of company to get list of drivers from
Request samples
Responses
Success(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
meta
object
required
Request metadata object
code
integer
required
HTTP status code returned by server
response
object
required
Contains response data
drivers
array [object {15}]
required
List of drivers for company
result
string
required
"OK" if request successful, otherwise "Failed"
Example
{
"meta": {
"code": 200
},
"response": {
"drivers": [
{
"card_id": "9600A2F6",
"driver_score": 0,
"email": "asmith@example.com",
"first_name": "Adam",
"group_id": 5812,
"group_name": "Installed Devices",
"id": 2815,
"last_name": "Smith",
"last_trip_ts": null,
"last_vehicle_id": null,
"last_vehicle_name": null,
"name": "Adam Smith",
"photos": [],
"status": "offline",
"type": "manual"
},
{
"card_id": "2A74F83A",
"driver_score": 0,
"email": "bsmith@example.com",
"first_name": "Brad",
"group_id": null,
"group_name": null,
"id": 2838,
"last_name": "Smith",
"last_trip_ts": null,
"last_vehicle_id": 3716512371,
"last_vehicle_name": "Truck 1",
"name": "Brad Smith",
"photos": [],
"status": "offline",
"type": "manual"
}
]
},
"result": "OK"
}
Last modified: 4 months ago