Create a school department

Creates a department for a batch with optional description and parent department details.

Authentication

AuthorizationBearer

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

Request

This endpoint expects an object.
namestringRequired
batch_idintegerRequired
descriptionstring or nullOptional
root_school_department_idinteger or nullOptional

Response

The school department was created successfully.
statusstringOptional
messagestringOptional
dataobjectOptional

Errors

401
Unauthorized Error
403
Forbidden Error
422
Unprocessable Entity Error
500
Internal Server Error