mark_attendance
Update a single student's attendance status for a Moodle session, such as changing an absence to excused after a medical certificate. Writes directly to the student's attendance record.
Instructions
WRITES TO MOODLE, visible to the student in their attendance record. Set one student's status in one session (e.g. turn an absence into excused after a medical certificate). statusid comes from attendance_sessions. Confirm with the user first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| userid | Yes | Student id from students | |
| statusid | Yes | Status id from the same session's statuses | |
| sessionid | Yes | Session id from attendance_sessions |