moodle_submit_assignment
Save or replace an assignment submission with online text and/or local files, keeping it as a draft or submitting it for grading once content is approved.
Instructions
Save the user's submission for an assignment: online text (HTML) and/or local files. This REPLACES the current submission's text/files. Leaves it as a draft unless submit_for_grading=true, which finalises it (and accepts the submission statement). Only call after the user has approved the exact content.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| assign_id | Yes | ||
| text_html | No | ||
| file_paths | No | ||
| submit_for_grading | No |