grade_manually
Manually grade Moodle assignment submissions with numeric grades and HTML-safe feedback, supporting team grading and marking workflow states.
Instructions
Manually grade an assignment submission (mod_assign_save_grade). Feedback text is HTML-safe. Supports team grading and marking workflow state.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grade | Yes | Numeric grade. -1 means "no grade yet". Negative values other than -1 are invalid in most scales. | |
| user_id | Yes | ||
| assign_id | Yes | ||
| feedback_text | No | ||
| attempt_number | No | -1 = grade the latest attempt. Otherwise specify the attempt number. | |
| workflow_state | No | Marking workflow state (only applies when the assignment has workflow enabled). | |
| apply_to_all_members | No | If the assignment uses team submission, apply this grade to every member of the team. |