Optimize one bus route

Reorders the selected route's student stops using the configured routing provider and saves the resulting stop timing.

Authentication

AuthorizationBearer

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

Path parameters

route_idintegerRequired
Route identifier.

Response

Optimization completed; route assignments are saved and the action returns an empty data array.

statusstringOptional
messagestringOptional
datalist of anyOptional

Errors

401
Unauthorized Error
403
Forbidden Error
404
Not Found Error