Use this file to discover all available pages before exploring further.
mod_exelearning_get_exelearnings_by_courses returns all accessible mod_exelearning instances visible to the calling user in the given set of courses. When no course IDs are supplied the function automatically queries the user’s enrolled courses. Courses the user cannot access produce a warning entry rather than an error, so a single inaccessible course never aborts the entire request.
List of course IDs to search for mod_exelearning instances. Pass an empty array (or omit the parameter) to search all courses the authenticated user is enrolled in.
Array of activity instance objects. Visibility is enforced by get_all_instances_in_courses() — hidden or restricted instances are excluded for users without the appropriate permission.
The course-module ID (cm.id). This is not the parameter for other API functions — those take exelearningid (the instance id field), not this coursemodule value.
One warning object per course that could not be accessed. The request succeeds even when warnings are present — the function never fails on an inaccessible course.
The packageurl field is only present in the response for users who hold the moodle/course:manageactivities capability (typically teachers and administrators). This mirrors the access control enforced by the pluginfile handler — students cannot download the raw ELPX source package.
POST {wwwroot}/webservice/rest/server.phpContent-Type: application/x-www-form-urlencodedwstoken=<token>&wsfunction=mod_exelearning_get_exelearnings_by_courses&moodlewsrestformat=json&courseids[0]=42&courseids[1]=57