We would like to use web form for new and existing students to enrol them selves to some courses or activities. The issue we have is to create and enrol student at the same time. Is this possible using API?
Yes this is very possible because Canvas has a robust set of API's available for us to use. Here are links to the create user and enrollment #api that I use and you will need to use to accomplish this.
create user: Users - Canvas LMS REST API Documentation
user enrollment: Enrollments - Canvas LMS REST API Documentation
Hope this helps.
Thank you Brian, would you have some examples to share? I havent done much of work with API.
I would suggest starting here:
Canvas APIs: Getting started, the practical ins and outs, gotchas, tips, and tricks
Retrieving data ...