'We are doing some integration work and are using the built is REST web services.
We want to use the 'enrol_manual_enrol_users' function to sync course enrolment between two systems. One required field to do this 'roleid'. I'd like to pull a list of roles from Moodle and present them to user to select which role the student should be enrolled as. Ican't see any function which returns a list of roles. Is there a built in web service for this?