Update a course problem
PUT/api/courses/:id/problems/:pid
Updates a problem within a course (multipart/form-data). Course staff (faculty or TAs) or a system admin. The problem must belong to the course in the path. Sending a new file replaces the stored solution; it's structure-validated and size-checked first, and the previous file is removed. Omitting the file keeps the current one.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 413
- 500
The updated problem.
Missing fields or the new file failed structure validation.
Not signed in.
Caller is not course staff (faculty or TA) or a system admin.
Problem not found in this course.
File exceeds the system upload limit.
Server error.