Attach a department to a grade

Creates the requested academic-year relationship between a school department and grade 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.
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 attached and the updated structure tree was returned.

statusstringOptional
messagestringOptional
dataobjectOptional

Errors

401
Unauthorized Error
403
Forbidden Error
404
Not Found Error