grade_submission
Put a grade and feedback on a student's Moodle submission. Overwrites prior mark and comment; set grade to -1 to update only the feedback.
Instructions
WRITES TO MOODLE, visible to the student. Put a mark and written feedback on one submission. The grade is on the assignment's own scale (see assignments); pass -1 to leave the mark unchanged and only update the feedback. This overwrites whatever mark and comment were there before, so confirm the numbers with the user first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grade | Yes | Mark on the assignment's scale, or -1 to leave it unchanged | |
| userid | Yes | Student id from students | |
| attempt | No | Attempt number, -1 for the latest | |
| assignid | Yes | Assignment id from assignments | |
| feedback | No | Feedback comment, plain text or simple HTML | |
| allow_new_attempt | No | Let the student submit again |