Here's the scenario that I want to generate-
1. An admin person will create a moodle course, suppose- COURSE_X
2. Some activities will be configured inside that COURSE_X, such as - quizzes, files, etc.
3. That COURSE_X will be duplicated and a new course COURSE_X_1 be created along with all those activities and resources via webservice_api- core_course_duplicate_course
4. The admin will enroll some teacher role and student role participants in that COURSE_X_1
5. Now when TEACHER_1_COURSE_X_1 accesses that course he will be able to add or remove new activities. But he shouldn't be able to delete the preconfigured activities duplicated from COURSE_X.
How can this be accomplished via webservice api call?