AnsweredAssumed Answered

How to create a new course using the API

Question asked by Daniel Olivas on Oct 16, 2018
Latest reply on Oct 16, 2018 by Daniel Olivas

Our goal is to create a Google form with a few fields like "Course Name", to allow our teachers to create new Courses.  We will put a link to the Google Form in Canvas. The API says to use this:

 

/v1/accounts/{account_id}/courses 

 

 

My question is, what exactly is the account_id?  When I try and use the Live API located at https://ourdomain.com/doc/api/api-docs.json, the documentation states that the accound_id is an optional integer associated with the course.  How do I obtain this value for the user filling out the Google Form?


 

Also, live API allows you to do a test run, but the account_id is REQUIRED.  So is this value required or optional? And if it's required, how do I get this value from the user who's filling out the Google Form and launching the API to create the course?

Outcomes