Create a comment
POST/api/comments
Creates a comment on an assignment problem, optionally scoped to a particular student's thread (studentId). The author must be an enrolled member of the course (any role) or a system admin; a system admin who isn't on the roster comments with no roster entry (rosterId null). Both the problem and any named student must belong to the course.
Auth: required
Request
Responses
- 201
- 400
- 401
- 403
- 404
- 500
The created comment with its author.
Validation failed.
Not signed in.
Author is not an enrolled member of the course or a system admin.
Assignment, problem, or named student not found.
Server error.