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.