Hello,
We're in the process of developing an integration with Moodle from our external application using the Moodle web services API.
One of the requirements for the integration is that we are able to update a user's Moodle enrolment start and end dates at any given point. I have been looking into the core_enrol_edit_user_enrolment call to do this.
The issue is that there is a required parameter "ueid" (user enrolment Id) but no call via the web services API that I can see to retrieve this Id.
I was expecting that the enrol_manual_enrol_users call used to create an enrolment in a course would return the id on creation but it returns null.
I've would also expect core_enrol_get_enrolled_users under the returned "enrolledcourses" section to contain the enrolment id but it contains the course id as id instead.
Without the user enrolment Id this call is not useable from an external application via the web services API. Is there a way to get this Id that I have just missed via web services?
Thanks for your help,
Liam