Calendar API
From MoodleDocs
This page documents the calendar API as it is in Moodle 3.3 and later. For the API in older versions of Moodle, see Calendar_API_old.
The Calendar API allows you to add and modify events in the calendar for user, groups, courses, or the whole site.