Deactivated user, Instructure Trainer
@crowley , Technical Consultant
Why use an API?
Examples of API Use:
“Hey Siri, what time does Walmart Pharmacy open today?”
There are 4 parts of an API call:
Example in Canvas:
“Hey Canvas, tell me what users are enrolled in BIO 101 100M SU19?”
Only use the beta instance of your Canvas account until you are comfortable enough to make changes to the production environment. Making changes to the API has the potential to make very large and possibly destructive changes to your Canvas environment! - How do I access the Canvas beta environment as an admin?
What if you don’t know the course ID?
Canvas API Documentation: api.instructure.com
When using a GET API call, you’ve already authenticated in your browser.
When using POST, PUT, DELETE, you can’t use a browser so you need another way to authenticate using a TOKEN.
API Token Security Best Practices:
It’s better to create a separate token in Production, Test, & Beta Canvas instances.
Account > Settings > Generate New Token
Admin > Settings > Reports > Provisioning Report > Courses (only use a specific Term) > Run Report
Can use the Provisioning Report from above to get the unique course ID to replicate the same action on all courses.
Use double curly brackets in Postman app on the new value for the Path Variable: