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.
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
isFinal
totrue
, 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
documents
orisFinal
can be processed at a time.
Example Workflow:
- Create an exam and upload the question paper.
- Finalize the exam with
{ "final": true }
. - AI processes the content for automated and accurate extraction.
- Receive a webhook notification upon successful extraction completion.
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
"4340132f-50fa-4877-9ffa-e9b7ee59d51f"
Body
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
Response
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
}
]