Detach a department from a grade

Removes the requested academic-year relationship between a school department and grade when no descendants prevent detachment.

Authentication

AuthorizationBearer

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

Path parameters

year_idintegerRequired>=1
Academic year for the relationship.
department_idintegerRequired>=1
Department identifier.
grade_idintegerRequired>=1
Grade identifier.
main_relationstringRequired
Relation direction supplied by the structure editor.

Response

The department-grade 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