AssignProfessor

View as Markdown
Assign a professor to a class course. If the professor is not yet enrolled in the given school period, the enrollment is created automatically. The response echoes back the resolved professorSemesterInfoId and the created professorToClassesCourseId. professorId: Check the GetProfessors call semesterId: Check the GetSchoolPeriods call classesCourseId: Check the GetPeriodClassCourses call

Headers

dreamclass-secret-keystringOptional

Your DreamClass API key. Required on every request. Find it in the DreamClass app under Settings > Integrations.

tenantstringOptional
Your tenant code: the DreamClass subdomain you sign in at (for https://myaccount.dreamclass.io it is "myaccount"), or your full white-labelled domain. Required on every request.
schoolCodestringOptional

Your school code. Required on every request. Find it in the DreamClass app under Settings > Integrations.

Request

This endpoint expects an object.
professorIdintegerRequired
semesterIdintegerRequired
classesCourseIdintegerRequired

Response headers

Access-Control-Allow-OriginstringOptional
Access-Control-Allow-MethodsstringOptional
X-Content-Type-OptionsstringOptional
Cache-ControlstringOptional

Response

OK
professorIdinteger
semesterIdinteger
classesCourseIdinteger
professorSemesterInfoIdinteger
professorToClassesCourseIdinteger