Submit a solution
POST/api/submissions
Submits a student's solution file for one assignment problem (multipart/form-data) and queues it for evaluation. Requires a signed-in user who is enrolled in the course (admins may submit anywhere). The problem must be linked to the assignment; the authoritative course comes from the assignment, not the client. Enforces a resubmit cooldown (429), the assignment's late/late-cutoff policy (403), an upload size limit (413), and XML structure validation. On success the submission is stored PENDING and returned with 202.
Auth: required
Request
Responses
- 202
- 400
- 401
- 403
- 404
- 409
- 413
- 429
- 500
Submission accepted and queued (status PENDING).
Missing fields, unlinked problem, or invalid file structure.
Not signed in.
Not enrolled, or the late/late-cutoff policy rejected it.
Assignment not found.
Per-problem submission limit reached.
File exceeds the system upload limit.
Resubmit cooldown in effect (see Retry-After).
Server error.