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.
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
Numeric type representing the role of the user.
"1"
Unique ID of the rubric to associate with the model answer sheet or you can refer this doc to get the rubricId
"2b973c83-2830-4712-87b7-64a8c0a99035"
Flag to trigger evaluation if set to 'true'. Only one of documents, rubricId, or isFinal is allowed.
true
, false
"true"
List of model answer sheet documents to upload (if any).
Response
Unique identifier for the model answer sheet.
"3b27e0be-f9e8-4c4d-977b-b315bfb292ab"
List of documents associated with the model answer sheet.
[]
Status of the model answer sheet (refer this doc to get the constants)
1