Detach a department-to-department relation

Removes the requested academic-year relationship between two school departments when its hierarchy has no dependent descendants.

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 detached 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