Model Answer Sheet
PATCH - Model Answer
The API allows updating an existing model answer sheet for an exam. This API is used to:
- Add or replace associated documents for the model answer sheet.
- Update the isFinal status of the model answer sheet..
Key Notes:
- Only one type of document (pdf and jpeg) can be uploaded for an exam
- For jpeg files, multiple images can be uploaded sequentially, one at a time.
Scenarios:
-
Finalizing the Model Answer Sheet and Triggering AI Extraction:
- Teachers finalize the model answer sheet by setting
isFinal
totrue
in the PATCH API request. - Outcome:
- AI extracts structured data such as model answers, step-wise marking schemes, and instructions, readying them for evaluation workflows.
- Teachers finalize the model answer sheet by setting
-
Sequential Upload of JPEG Documents:
- For handwritten model answer sheets, teachers upload JPEG images one at a time via the API.
- After uploading all images,
isFinal
is set totrue
to initiate AI extraction. - Outcome:
- AI processes the images, extracting structured content for evaluation.
Example Workflow:
- The teacher uploads a model answer document (PDF or JPEG) via this API.
- Calls the API with
{ "isFinal": true }
to trigger AI extraction. - The extracted content is reviewed and used for grading purposes.
Note:
- Once
isFinal
is set totrue
, the AI extraction process begins, which may take time. - To support seamless integration, a webhook feature is available. Upon successful extraction, the system sends a notification to the configured webhook URL.
- Only one of
documents
orisFinal
can be processed at a time.
PATCH
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
Example:
"4340132f-50fa-4877-9ffa-e9b7ee59d51f"
Example:
"287117d6-0135-4329-b5a7-d46e42948a14"
Body
multipart/form-data
The details to update for the model answer.
The model answer file to be uploaded.
After successfully uploaded files pass this parameter as true for the extraction for your exam.
Example:
true