PATCH
/
evaluation-platform
/
v1
/
exam
/
{id}
curl --request PATCH \
  --url https://api-staging.crazygoldfish.com/evaluation-platform/v1/exam/{id}/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form grade=12 \
  --form subject=1 \
  --form examType=1 \
  --form examSet=C \
  --form examDate=2023-12-25 \
  --form classSection=A \
  --form isFinal=true
{
  "examId": "4340132f-50fa-4877-9ffa-e9b7ee59d51f",
  "documents": [
    {
      "id": "628f10af-59b5-44f2-b27a-fdf30d254fd5",
      "status": 0,
      "pageNo": null,
      "uploadTime": "2025-01-02T11:03:30.034720Z",
      "url": "https://cgfblob.blob.core.windows.net/ielts/evaluation/CBSE_10_Maths_-_Mock_Test_A_SjFa0sA.pdf",
      "fileType": 1
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required
Example:

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

Body

multipart/form-data
The details to update for the exam paper.
documents
file

The exam paper file to be uploaded.

grade
integer

The class the exam paper belongs to.

Example:

12

subject
integer

The subject of the exam paper.

Example:

1

examType
integer

The type of the exam.

Example:

1

examSet
string

The set of the exam.

Example:

"C"

examDate
string

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

classSection
string

The section of the class.

Example:

"A"

isFinal
boolean

After successfully uploaded files pass this parameter as true for the extraction for your exam.

Example:

true

Response

200
application/json
Successfully updated exam details.
examId
string

The unique identifier for the updated exam.

Example:

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

documents
object[]

Details of the documents attached to the exam.

Example:
[
  {
    "id": "628f10af-59b5-44f2-b27a-fdf30d254fd5",
    "status": 0,
    "pageNo": null,
    "uploadTime": "2025-01-02T11:03:30.034720Z",
    "url": "https://cgfblob.blob.core.windows.net/ielts/evaluation/CBSE_10_Maths_-_Mock_Test_A_SjFa0sA.pdf",
    "fileType": 1
  }
]