driverShiftAssignment API Endpoint
Using the driverShiftAssignment
API, one can select single or multiple drivers and assign them to a specified shift (limited to 100 drivers in a single call).
API Details
PUT
https://api.zendrive.com/fleet/v1/shift/assign_drivers
Assign a specific shift to a selected driver. Note that any driver can be assigned to only one shift at a given time.
Headers
Name
Type
Description
API KEY <API_KEY>*
Application/JSON
Authorization header.
Request Payload
{
"shift_assignments": {
"driver_ids": ["xcwcds","acdsds"],
"shift_id": "zendrive_shift_1"
}
}
Response Fields
Response Parameter
Description
shift_assignments
A JSON containing the driver_ids
and shift_id
.
driver_ids
List of driver_ids
to be assigned to the shift.
shift_id
Shift ID assigned by Zendrive.
Was this helpful?