Create a bus run setup

Creates a scheduled bus run for an academic year, optionally limited to selected grades or classes.

Authentication

AuthorizationBearer

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

Request

This endpoint expects an object.
academic_year_idintegerRequired>=1
namestringRequired<=255 characters
start_timestringRequiredformat: "^([0-1]\\d|2[0-3]):[0-5]\\d:[0-5]\\d$"
end_timestringRequiredformat: "^([0-1]\\d|2[0-3]):[0-5]\\d:[0-5]\\d$"
time_type_idintegerRequired
stop_type_idintegerRequired
amount_of_routesintegerRequired1-100
class_idslist of integersOptional
grade_idslist of integersOptional
days_of_weeklist of enumsOptional

Response

Run setup created.
statusstringOptional
messagestringOptional
datamap from strings to anyOptional

Errors

401
Unauthorized Error
403
Forbidden Error
422
Unprocessable Entity Error