General plugins (Local): Webservice functions for cohort enrolment
The webservice functions for cohort enrolment provides the ability to manage cohort enrolment instances using Moodle webservices. This plugin was developed for Te Wānanga O Aotearoa to streamline the enrolment of Tauira (student, learner) into courses.
The following webservice functions are available.
- add_instance - Add a cohort enrolment instance to a course
- update_instance - Update an existing cohort enrolment instance
- delete_instance - Delete an existing cohort enrolment instance
- get_instances - Gets the cohort enrolment instances for all courses or a single course
The webservice documentation for the above functions can be found at
When the plugin is installed all of the cohort enrolment webservice functions are added to the Built-in services.
An example call to the webservice function for adding a cohort enrolment instance to course would look like this:
Commenting temporarily disabled