Assignment
POST - Assignment
This API allows authenticated users to create a new assignment by providing essential details like assignment name, institute info, and class metadata.
Key Notes:
assignmentName
(required): The title of the assignment.userType
(required): Numeric type representing the role of the user (e.g., 1, 2).parentInstituteId
,instituteId
,courseId
: Help link the assignment to the correct organizational hierarchy.grade
andsection
: Specify the targeted academic group for the assignment.
Scenario: Creating an Assignment for Grade 8 - Section B
- A teacher wants to assign a new English essay task to Grade 8 students of Section B.
- They send a POST request with all necessary metadata.
- Upon success, the assignment is created and returns an ID, ready for document uploads and evaluation.
POST
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
Name of the assignment
Example:
"English Assignment"
Type of user
Example:
1
ID of the parent institute
Example:
"101"
ID of the institute
Example:
"202"
ID of the course
Example:
"303"
Grade of the assignment
Example:
"8"
Section of the assignment
Example:
"B"