/driver_assignment - POST |
This service is used to assign the authenticated (logged in) driver to a specified 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 new assignment:
Member | Type | Purpose |
---|---|---|
id | string | The alphanumeric identifier for the vehicle the driver is now assigned to. |