Update a bus maintenance schedule

Replaces the selected maintenance schedule details and resynchronizes trips affected by the old and new date ranges.

Authentication

AuthorizationBearer

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

Path parameters

idintegerRequired
Maintenance schedule ID.

Query parameters

_methodenumOptional

Frontend form-method override sent with the POST request.

Allowed values:

Request

This endpoint expects an object.
bus_idintegerRequired
replacement_bus_idintegerRequired
start_datedateRequired
end_datedateRequired
reasonstring or nullOptional

Response

Schedule updated.
statusstringOptional
messagestringOptional
dataobjectOptional

Errors

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