POST
/
assignment-evaluation
/
v1
/
assignment
curl --request POST \
  --url https://api-staging.crazygoldfish.com/assignment-evaluation/v1/assignment/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "assignmentName": "English Assignment",
  "userType": 1,
  "parentInstituteId": "101",
  "instituteId": "202",
  "courseId": "303",
  "grade": "8",
  "section": "B"
}'
{
  "id": "2600413f-7c6e-46ef-8ea9-3e7b5834879f",
  "documents": []
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
assignmentName
string
required

Name of the assignment

Example:

"English Assignment"

userType
integer
required

Type of user

Example:

1

parentInstituteId
string

ID of the parent institute

Example:

"101"

instituteId
string

ID of the institute

Example:

"202"

courseId
string

ID of the course

Example:

"303"

grade
string

Grade of the assignment

Example:

"8"

section
string

Section of the assignment

Example:

"B"

Response

201
application/json
Assignment created successfully.
id
string

Unique identifier for the assignment

Example:

"2600413f-7c6e-46ef-8ea9-3e7b5834879f"

documents
any[]
Example:
[]