Create a problem in a course
POST/api/courses/:id/problems
Creates a problem in a course from an uploaded solution file (multipart/form-data). Course staff (faculty or TAs) or a system admin. The file's XML structure is validated against the problem type before it's written to disk, and it's size-checked against the system upload limit. maxStates applies to FA/PDA and isDeterministic to FA. The course comes from the path.
Request
Responses
- 201
- 400
- 401
- 403
- 404
- 413
- 500
The created problem.
Missing fields or the solution file failed structure validation.
Not signed in.
Caller is not course staff (faculty or TA) or a system admin.
Course not found.
File exceeds the system upload limit.
Server error.