AnsweredAssumed Answered

Enroll user after creating course using the API

Question asked by Daniel Olivas on Feb 5, 2019
Latest reply on Feb 5, 2019 by Daniel Olivas

We are trying to get our users to create courses using a Google Form.  We link to this form in Canvas.  

 

I can successfully create a course using the API with POST /api/v1/accounts/self/courses

 

Prior to calling this I do a GET /api/v1/accounts/1/users to get some information on the user submitting the form.  

 

So I have two questions.

 

1.) Is there a way to get the SIS_USER_ID for a specific user using the API? 

2.) How can I get the course_id of  a course that was just created?

 

I need both the course_id and the user_id to enroll the user in the course using enrollments API.

 

 

Thanks,

Outcomes