PATCH
/
assignment-evaluation
/
v1
/
assignment
/
{id}
/
answer-sheet
/
{assignmentSheetId}
curl --request PATCH \
  --url https://api-staging.crazygoldfish.com/assignment-evaluation/v1/assignment/{id}/answer-sheet/{assignmentSheetId}/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form userType=1 \
  --form 'documents=[
  null
]' \
  --form isFinal=true
{
  "id": "57387c68-0706-4a9d-834a-237b6b63cb5d",
  "status": 0,
  "studentId": "12345",
  "name": "John Doe",
  "batchId": "batch_1",
  "sessionId": "session_1",
  "documents": [
    {
      "id": "bec0d0bf-fff6-40de-9750-65f5dcaf470d",
      "status": 1,
      "pageNo": 1,
      "uploadTime": "2025-04-06T09:04:11.716434Z",
      "url": "https://cgfblob.blob.core.windows.net/documents/assignment-evaluation/olfactory_imagery_HW_PDF_2_questions_1_H7dPCAd.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

Unique identifier of the assignment

assignmentSheetId
string
required

Unique identifier of the answer sheet

Body

multipart/form-data
userType
string

Numeric type representing the role of the user.

Example:

"1"

documents
file[]

List of answer sheet documents to upload (if any).

isFinal
boolean

Flag to trigger evaluation if set to 'true'. Only one of documents, or isFinal is allowed.

Example:

true

Response

200
application/json
Answer sheet uploaded successfully.
id
string

Unique identifier for the answer sheet.

Example:

"57387c68-0706-4a9d-834a-237b6b63cb5d"

status
integer

Status of the answer sheet (refer this doc to get the constants)

Example:

0

studentId
string

Unique identifier of the student.

Example:

"12345"

name
string

Name of the student.

Example:

"John Doe"

batchId
string | null

Unique identifier of the batch.

Example:

"batch_1"

sessionId
string | null

Unique identifier of the session.

Example:

"session_1"

documents
object[]

List of documents associated with the assignment.