Update a bus

Updates bus details and optionally changes its tracking device assignment.

Authentication

AuthorizationBearer

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

Path parameters

idintegerRequired
Bus ID.

Query parameters

_methodenumOptional

Frontend form-method override sent with the POST request.

Allowed values:

Request

This endpoint expects an object.
namestringRequired<=255 characters
colorstring or nullOptional
bus_numberstring or nullOptional
vin_numberstring or nullOptional
capacityinteger or nullOptional0-1000
tracking_device_idinteger or nullOptional>=1

Response

Bus updated.
statusstringOptional
messagestringOptional
dataobjectOptional

Errors

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