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:
If I change the options parameter removing the square brackets ([]) it gives me the following error:
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.