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.multipart/form-data
for file uploads.assignmentName
, grade
, section
, or upload a document file using the documents
field.isFinal
flag to signal that the document upload is complete, which will trigger document extraction.Scenario: Uploading the Final Document
isFinal
to true
.Important:
documents
and isFinal
are provided in the same request, a validation error is returned.documents
to upload, or isFinal
to trigger extraction — not both together.Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Unique identifier of the assignment
Assignment updated successfully
The response is of type object
.