POST /driver_unassignment |
This service is used to unassign this driver from the selected vehicle. In the event that driver unassignment fails, an error response will be returned. Use null or empty string as the ID to unassign the driver from the currently assigned vehicle.
The Request body is a JSON object with the following members:
Member | Type | Purpose |
---|---|---|
id | string | The integer identifier for the vehicle to be assigned to the authenticated driver. |
timeOccurred | string | (optional) The ISO 8601 timestamp for when the driver assignment event occurred. If not provided, it is set by the server automatically. |
On success, the response body contains the JSON object that indicates the driver's unassignment:
Member | Type | Purpose |
---|---|---|
id | string | The alphanumeric identifier for the vehicle from which this driver is now unassigned. |