Community

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
namyers
New Member

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
pklove
Community Champion

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
Community Champion

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

pklove
Community Champion

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

lauramaewojo
Community Participant

That did the trick!  Thanks, Peter Love! pklove

Thank you! Much appreciated!!