Quantcast
Channel: Web services
Viewing all articles
Browse latest Browse all 2364

Moodle Web service: core_enrol_submit_user_enrolment_form function is not working

$
0
0
by Mangesh Nadekar.  

Hi Team,

I am using Moodle version 3.9.2 and Moodle web service documentation https://docs.moodle.org/dev/Web_service_API_functions for my development.

I want to update user enrolment end timestamp but in API documentation /admin/webservice/documentation.php  core_enrol_edit_user_enrolment function is deprecated.

Message : ** DEPRECATED ** Please do not call this function any more. External function that updates a given user enrolment

So I am using core_enrol_submit_user_enrolment_form function as alternative of core_enrol_edit_user_enrolment .

But I am getting error

Array
(
    [exception] => invalid_parameter_exception
    [errorcode] => invalidparameter
    [message] => Invalid parameter value detected
)

Using http://github.com/llagerlof/MoodleRest for REST API development.

Can any one tell me the correct parameters( i.e.  formdata) for core_enrol_submit_user_enrolment_form ? So I can easily update user enrolment end timestamp.

Thanks,
Mangesh 



Viewing all articles
Browse latest Browse all 2364

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>