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

Function core_course_duplicate_course

$
0
0
by María UP Navarra.  

Good morning.

First of all, sorry for my bad english.

I am trying to use the "core_course_duplicate_course" function to duplicate a course in moodle.

I have enabled all necessary features and permissions and the process works fine.

My problem arises when I want, for example, to disable the copying/duplicating of users, roles, activities... It doesn't matter how I send the request, it always duplicates the entire course.

I am carrying out the initial tests from Postman, I am attaching a screenshot of my request:

Petición postman - duplicate_course

If I change the options parameter removing the square brackets ([]) it gives me the following error:

Error petición duplicate_course

I think the problem is in the configuration of the parameters of the "options" block.

Could someone please guide me on how I should send these parameters?

I am using php 7.4 and moodle 4.0

Thank you very much for your time and best regards.


Viewing all articles
Browse latest Browse all 2361

Trending Articles



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