driverShiftList API Endpoint
The driverShiftList
API fetches the list of all the drivers that are assigned to a particular shift
API Details
GET
https://api.zendrive.com/fleet/v1/shifts/drivers
The driverShiftList API endpoint returns a list of drivers for a given shift_id.
Headers
Name
Type
Description
API KEY <API_KEY>*
Application/JSON
Authorization header.
Request Body
Name
Type
Description
Offset
String
Limit
String
Max: 25
Default: 10
Shift Id
null/ identifier
if this is not present: list all the shifts.
should_include
integer
1/0 type.
If 1, then list all drivers in the specified shift.
If 2, list all drivers not in the specified shift.
Response Body
{
"driver_id_list":[
{
"driver_id":"csxcwdcde",
"shift_id": "gm_shift_1"
"driver_name": "Test Driver1",
"shift_name": "Morning Shift",
},
{
"driver_id":"dcbghcf",
"shift_id": "gm_shift_1"
"driver_name": "Test Driver2",
"shift_name": "Morning Shift",
}
]
offset: 12345, // assume -1 if it is not present
shift_driver_count : 400
}
Was this helpful?