Bulk enroll
Bulk enroll
POST
https://your-platform-url.com/api/bulk_enroll/v1/bulk_enroll/
Cet endpoint permet d'inscrire ou désinscrire un apprenants à un ou plusieurs cours. Permissions : Être administrateur du cours pour lequel vous souhaitez inscrire les utilisateurs.
Headers
Access-Control-Request-Headers
string
authorization
Authorization
string
Bearer <auth_token>
Content-Type
string
application/json
Bulk enrollment
Inscrire un ou plusieurs utilisateurs dans un ou plusieurs cours.
Request example
POST Parameters
Key
Comments
auto_enroll
When set to true
, students will be enrolled as soon as they register.
email_students
When set to true
, students will be sent email notifications upon enrollment.
action
Can either be set to "enroll" or "unenroll". This determines the behavior
cohorts
Optional. If provided, the number of items in the list should be equal to the number of courses. first cohort coressponds with the first course and so on. The learners will be added to the corresponding cohort.
Response Values
If the supplied course data is valid and the enrollments were successful, an HTTP 200 "OK" response is returned. The HTTP 200 response body contains a list of response data for each enrollment. If a cohorts list is provided, additional 'cohort' keys will be added to the 'before' and 'after' states.
Dernière mise à jour