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_idintegerRequired>=1
Academic year for the relationship.
first_department_idintegerRequired>=1
First department identifier.
second_department_idintegerRequired>=1
Second department identifier.
main_relationstringRequired
Relation direction supplied by the structure editor.

Response

The department relationship was attached and the updated structure tree was returned.
statusstringOptional
messagestringOptional
dataobjectOptional

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error