POST
/
assignment-evaluation
/
v1
/
assignment
/
{id}
/
answer-sheet
curl --request POST \
  --url https://api-staging.crazygoldfish.com/assignment-evaluation/v1/assignment/{id}/answer-sheet/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "userType": 1,
  "studentId": "12345",
  "name": "John Doe",
  "batchId": "batch_1",
  "sessionId": "session_1",
  "teacherId": "teacher_1"
}'
{
  "id": "57387c68-0706-4a9d-834a-237b6b63cb5d",
  "status": 0,
  "studentId": "12345",
  "name": "John Doe",
  "batchId": "batch_1",
  "sessionId": "session_1",
  "documents": []
}

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

Body

application/json
userType
number
required

Numeric type representing the role of the user.

Example:

1

studentId
string
required

Unique identifier of the student.

Example:

"12345"

name
string
required

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"

teacherId
string | null

Unique identifier of the teacher.

Example:

"teacher_1"

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.

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 answer sheet.

Example:
[]