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. - 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): Passtrueif 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.You can either uploaddocumentsor provide arubricIdin 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
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
Model answer sheet updated successfully.
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