PATCH - Assignment
This API allows authenticated users to update an existing assignment by modifying its details or uploading assignment documents.
Key Notes:
id
(required in path): Unique identifier of the assignment to be updated.- Request body accepts
multipart/form-data
for file uploads. - You can update metadata like
assignmentName
,grade
,section
, or upload a document file using thedocuments
field. - Use the
isFinal
flag to signal that the document upload is complete, which will trigger document extraction.
Scenario: Uploading the Final Document
- A teacher updates the assignment by uploading the final assignment PDF and setting
isFinal
totrue
. - This flags the system to begin extracting content from the uploaded file.
Important:
- If both
documents
andisFinal
are provided in the same request, a validation error is returned. - Use either
documents
to upload, orisFinal
to trigger extraction — not both together.
Path Parameters
Unique identifier of the assignment
Body
Name of the assignment
"English Assignment"
ID of the parent institute
"100"
ID of the institute
"200"
ID of the course
"300"
Grade of the assignment
"7"
Section of the assignment
"A"
The assignment file to be uploaded.
After successfully uploaded the assignment then set isFinal
as true
it will start extracting your document.
true
Response
Unique identifier for the assignment.
"2600413f-7c6e-46ef-8ea9-3e7b5834879f"
Name of the assignment.
"English Assignment"
Status of the assignment (refer this doc to get the constants)
2
Grade of the assignment.
"7"
10
Section of the assignment.
"A"
ID of the parent institute.
"100"
ID of the institute.
"200"
ID of the course.
"300"
List of documents associated with the assignment.
Created date for the assignment.
"2025-04-06T09:03:42.099207Z"
Modified date of the assignment.
"2025-04-06T09:06:19.351379Z"