cancel
Showing results for 
Search instead for 
Did you mean: 
namyers
Surveyor

Canvas API & Custom Rolls

Jump to solution

When working with the API to enroll teachers and students in courses, the API does not appear to recognize custom types. It will only enroll 'StudentEnrollment', 'TeacherEnrollment', 'TaEnrollment', 'DesignerEnrollment', and 'ObserverEnrollment.' Is there a way around this?

1 Solution

Accepted Solutions

BTW, the deprecated enrollment[role] still works for now if you want to test using the role name, rather than the id.

View solution in original post

4 Replies
pklove
Learner II

Have you tried enrollment[role_id], rather than enrollment[type]?

BTW, the deprecated enrollment[role] still works for now if you want to test using the role name, rather than the id.

View solution in original post

That did the trick!  Thanks, Peter Love! pklove

Thank you! Much appreciated!!