PATCH - Exam
This API allows updating an existing exam. You can:
- Mark an exam as final.
- Upload associated documents.
- Modify exam attributes such as examType.
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 with
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).
Scenario: Finalizing an Exam and Triggering AI Extraction
This API allows a teacher to finalize an exam by setting the final attribute to true using the PATCH Update Exams API.
Outcome:
- Finalizing triggers the AI extraction process to analyze uploaded documents (e.g., PDFs or JPEGs) and extract key details such as questions, marks distribution, and instructions.
- The extracted data is stored for workflows like grading and reporting.
Note:
- After setting
isFinaltotrue, the AI extraction process is initiated. This process may take some time to complete. - To facilitate seamless integration, we provide a webhook feature. Once the extraction is successfully completed, the system will send a notification to the configured webhook URL.
- Only one of
documentsorisFinalcan be processed at a time.
Example Workflow:
- Create an exam and upload the question paper.
- Finalize the exam with
{ "isFinal": true }. - AI processes the content for automated and accurate extraction.
- Receive a webhook notification upon successful extraction completion.
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"
Body
The details to update for the exam paper.
The exam paper file to be uploaded.
The class the exam paper belongs to.
12
The subject of the exam paper.
1
The type of the exam.
1
The set of the exam.
"C"
Date of the exam (should be in the format format - 'YYYY-MM-DD')
The section of the class.
"A"
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 (images or a single PDF). The URL must be publicly accessible without authentication and must end with a .pdf extension. Mutually exclusive with documents in the same request.
"https://cdn.example.com/exams/question-paper.pdf"
Response
Successfully updated exam details.
The unique identifier for the updated exam.
"4340132f-50fa-4877-9ffa-e9b7ee59d51f"
Details of the documents attached to the exam.
[
{
"id": "628f10af-59b5-44f2-b27a-fdf30d254fd5",
"status": 0,
"pageNo": null,
"uploadTime": "2025-01-02T11:03:30.034720Z",
"url": "https://cgfblob.blob.core.windows.net/ielts/evaluation/CBSE_10_Maths_-_Mock_Test_A_SjFa0sA.pdf",
"fileType": 1
}
]