Schedules drivers to specific vehicles over specified periods, facilitating efficient fleet management. Unlike the Driver Assignment API, which tracks actual driver usage of vehicles, this API focuses solely on planned schedules.
Below is the reference list of validation response codes that can be found in response after submitting dispatch schedule:
Created
Bad Request
Unauthorized
Forbidden
Internal Server Error
{- "validate": false,
- "autoAddDriver": true,
- "entries": [
- {
- "userIdentifier": "emp123",
- "user": {
- "firstName": "Jane",
- "lastName": "Doe",
- "id": "12345678"
}, - "vehicleIdentifier": "Toyota",
- "startDate": "2019-08-24T14:15:22Z",
- "endDate": "2019-08-24T14:15:22Z"
}
]
}
{- "data": {
- "submissionBatchId": 0,
- "entries": [
- {
- "submissionId": 123,
- "employeeId": "emp123",
- "driverFirstName": "John",
- "driverLastName": "Doe",
- "vehicleName": "Toyota",
- "responseCodeId": "SUCCESS",
- "startDate": "2023-09-10T00:00:00Z",
- "endDate": "2023-09-10T00:00:00Z"
}
]
}
}