AnsweredAssumed Answered

Link observer to a specific course and observee programmatically

Question asked by Zbynek Dusatko on Oct 8, 2018
Latest reply on Oct 9, 2018 by Peter Love

Hi there,

 

I am trying to figure out user observee api 
PUT /api/v1/users/:user_id/observees/:observee_id

It seems it changes user role to observer and at the same time it links the user to observee on all root account. This will link observer to all observee's past, current, future courses in that root account. According to What is the Observer role this is "A user-account level link". Is there a way to link observer to a student under only a specific course, or "A course-level link" programmatically? 


So far in this enroll a user api 
POST /api/v1/courses/:course_id/enrollments

the user can be enrolled as an observer to a specific course but I don't see any api to link it to an observee in that course. I know this can be done through Canvas UI but we need this done programmatically.

 

Thanks for any clarification on this,

Zbynek

Outcomes