Schedule maintenance for a bus

Creates a dated maintenance schedule and assigns a replacement bus. The buses must be different and the dates must be valid and non-overlapping.

Authentication

AuthorizationBearer

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

Request

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

Response

Maintenance schedule created.
statusstringOptional
messagestringOptional
dataobjectOptional

Errors

401
Unauthorized Error
403
Forbidden Error
422
Unprocessable Entity Error