{ "opencollection": "1.0.0", "info": { "name": "Canvas LMS REST Accounts Enrollments API", "version": "1.0" }, "request": { "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://canvas.instructure.com/login/oauth2/auth", "accessTokenUrl": "https://canvas.instructure.com/login/oauth2/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "items": [ { "info": { "name": "Enrollments", "type": "folder" }, "items": [ { "info": { "name": "List Enrollments in a Course", "type": "http" }, "http": { "method": "GET", "url": "https://{canvas_host}/api/v1/courses/:course_id/enrollments", "params": [ { "name": "course_id", "value": "", "type": "path", "description": "The Canvas course ID or an SIS course ID prefixed `sis_course_id:`." }, { "name": "type[]", "value": "", "type": "query" }, { "name": "state[]", "value": "", "type": "query" } ] }, "docs": "List Enrollments in a Course" }, { "info": { "name": "Enroll a User in a Course", "type": "http" }, "http": { "method": "POST", "url": "https://{canvas_host}/api/v1/courses/:course_id/enrollments", "params": [ { "name": "course_id", "value": "", "type": "path", "description": "The Canvas course ID or an SIS course ID prefixed `sis_course_id:`." } ], "body": { "type": "json", "data": "{}" } }, "docs": "Enroll a User in a Course" } ] } ], "bundled": true }