Assignment Model Answer
PATCH - Update Model Answer
This API allows authenticated users to update an existing model answer by either attaching rubric-based evaluation criteria or uploading supporting documents.
Key Parameters:
- assignmentId (
path param
, required): Unique ID of the assignment. - userType (
form-data
, required): Role of the user submitting the model answer (e.g., 1 for teacher). - rubricId (
form-data
, optional): The unique ID of the rubric used for evaluation or you can refer this doc to get therubricId
. - isFinal (
form-data
, optional): Passtrue
if this is the final model answer being submitted for evaluation. - documents[] (
form-data
, optional): Uploads related documents such as reference material or answer sheets.
Behavior:
- You must only pass one of these at a time:
documents
,rubricId
, orisFinal
. - If
isFinal=true
, the model answer sheet will be sent for evaluation.
⚠️ Key Note: You can either upload
documents
or provide arubricId
in a single request — not both. This is to ensure clarity in what part of the model answer you’re updating.
PATCH
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
Unique identifier of the assignment
Unique identifier of the model answer
Body
multipart/form-data
Response
200
application/json
Model answer sheet updated successfully.
The response is of type object
.