Quantcast
Viewing all articles
Browse latest Browse all 2364

Re: How to use moodle APIs to create quiz and questions

by Rodrigo Martins.  

I'm a bit disappointed we're not able to create quizzes via API.

However, renaming sections is possible. I strugled with it a bit but I found out we can use 'core_update_inplace_editable' to do it. 

You can use the following parameters to call the API:

wstoken: 'Your token'
moodlewsrestformat: 'json'
wsfunction: 'core_update_inplace_editable'
component: 'format_topics'
itemtype: 'sectionname'
itemid: 'your section ID'
value: 'New name'

You can get the section id by calling the 'core_course_get_contents' function.


Viewing all articles
Browse latest Browse all 2364

Trending Articles



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