Attach a department to another department
Creates the requested academic-year relationship between two school departments and returns the updated structure tree.
Authentication
AuthorizationBearer
The signed-in SchoolSet user token sent by the frontend.
Path parameters
year_id
Academic year for the relationship.
first_department_id
First department identifier.
second_department_id
Second department identifier.
main_relation
Relation direction supplied by the structure editor.
Response
The department relationship was attached and the updated structure tree was returned.
status
message
data
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error

