Update a bus driver

Updates a driver’s contact details and replaces the driver’s saved addresses. The frontend submits this as a POST with _method=patch; this operation documents the routed PATCH contract.

Authentication

AuthorizationBearer

The signed-in SchoolSet user token sent by the frontend.

Path parameters

idlongRequired
Driver identifier.

Request

This endpoint expects an object.
namestringRequired
phonestring or nullOptional
emailstring or nullOptional
addresslist of objectsOptional

Response

Updated driver.
statusstringOptional
messagestringOptional
dataobjectOptional

Errors

401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error