create_calendar_event
Create Moodle calendar events with custom type, course or group association, and optional weekly recurrence. Returns event ID and metadata.
Instructions
Create a calendar event. Default eventtype=course. Set repeat_count>0 to create weekly recurrences. Returns the created event id and metadata.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| groupid | No | ||
| location | No | ||
| course_id | No | Attach the event to a course. Omit for user or site events. | |
| eventtype | No | course | |
| timestart | Yes | Unix timestamp for the event start. | |
| description | No | ||
| repeat_count | No | If >0, Moodle creates this many repeated events at 7-day intervals starting from timestart. | |
| timeduration | No | Seconds. 0 = no duration. |