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.
- You can supply a PDF using
fileUrlinstead of uploading viadocuments. fileUrlmust be a public HTTPS URL, and the URL path must end with.pdf.- Use only one of
documents,fileUrl, orisFinalin a single request (do not combine them).
Scenarios:
-
Finalizing the Model Answer Sheet and Triggering AI Extraction:
- Teachers finalize the model answer sheet by setting
isFinaltotruein 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,
isFinalis set totrueto 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.
documents and isFinal are provided in the same request, a validation error is returned. Use either documents to upload, or isFinal to trigger extraction — not both together. Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
"4340132f-50fa-4877-9ffa-e9b7ee59d51f"
"287117d6-0135-4329-b5a7-d46e42948a14"
Body
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.
true
Public HTTPS URL to a PDF. Use instead of uploading documents. The URL must be publicly accessible without authentication and must end with a .pdf extension.
"https://cdn.example.com/model-answer/model-answer-101.pdf"