Add a bus

Creates a bus in the active school. A tracking device, when supplied, must exist in that school and not already be assigned to another bus.

Authentication

AuthorizationBearer

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

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 created.
statusstringOptional
messagestringOptional
dataobjectOptional

Errors

401
Unauthorized Error
403
Forbidden Error
422
Unprocessable Entity Error