POST
/
evaluation-platform
/
v1
/
exam
curl --request POST \
  --url https://api-staging.crazygoldfish.com/evaluation-platform/v1/exam/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "examName": "Mid-Term Exam",
  "grade": 10,
  "subject": 1,
  "examType": 1,
  "examSet": "A",
  "examDate": "2025-01-10",
  "classSection": "A"
}'
{
  "examId": "4340132f-50fa-4877-9ffa-e9b7ee59d51f",
  "documents": []
}

Authorizations

Authorization
string
header
required

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

Body

application/json
examName
string
required

Name of the exam

Example:

"Mid-Term Exam"

grade
integer
required

Class for which the exam is intended

Example:

10

subject
integer
required

Subject ID

Example:

1

examType
integer
required

Type of exam.

Example:

1

examSet
string
required

Set of the exam paper

Example:

"A"

examDate
string
required

Date of the exam (should be in the format format - 'YYYY-MM-DD')

Example:

"2025-01-10"

classSection
string

Optional section of the class

Example:

"A"

Response

201
application/json
Exam created successfully.
examId
string

Unique identifier of the exam

Example:

"4340132f-50fa-4877-9ffa-e9b7ee59d51f"

documents
object[]

An empty array to attach further content.

Example:
[]