Hi all,
I am calling the REST api with a POST url to unenroll (and hopefully at some point also enroll) users. While I get a decent response and result from some other calls, i. e. my user and token etc. work, this one returns a 1, but users don't get unenrolled.
here is my call:
MYSERVER/webservice/rest/server.php?wsfunction=camstomoodle_unenroll_users&unenrollments[0][userid]=126481&unenrollments[0][courseid]=95&wstoken=XXXXXXXXXXXXXXX
Result:
<?xml version="1.0" encoding="UTF-8" ?>
<RESPONSE>
<SINGLE>
<KEY name="message"><VALUE>1</VALUE>
</KEY>
</SINGLE>
</RESPONSE>
But the user does not get enenrolled, any ideas?
Thanks!