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-datafor file uploads. - You can update metadata like
assignmentName,grade,section, or upload a document file using thedocumentsfield. - Use the
isFinalflag 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
isFinaltotrue. - This flags the system to begin extracting content from the uploaded file.
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. Documentation Index
Fetch the complete documentation index at: https://docs.crazygoldfish.com/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
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
Assignment updated successfully
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"