PATCH
/
assignment-evaluation
/
v1
/
assignment
/
{id}
/
model-answer
/
{modelAnswerId}
curl --request PATCH \
  --url https://api-staging.crazygoldfish.com/assignment-evaluation/v1/assignment/{id}/model-answer/{modelAnswerId}/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form userType=1 \
  --form rubricId=2b973c83-2830-4712-87b7-64a8c0a99035 \
  --form isFinal=true \
  --form 'documents=[
  null
]'
{
  "id": "3b27e0be-f9e8-4c4d-977b-b315bfb292ab",
  "documents": [],
  "rubric": {
    "id": "2b973c83-2830-4712-87b7-64a8c0a99035",
    "name": "English Rubrics",
    "description": null,
    "rubricCriteria": [
      {
        "id": "d102b0ff-1111-4235-b8e9-764ef03c57cb",
        "name": "Confidence & fluency in speaking",
        "description": "",
        "maxScore": "5 Star",
        "minScore": "1 Star",
        "scoringLogic": [
          {
            "score": "5 Star",
            "scoringLogic": "Speaking: Reflects poise & confidence. Great body language, eye contact."
          }
        ],
        "createdAt": "2023-10-01T12:00:00Z",
        "modifiedAt": "2023-10-01T12:00:00Z"
      }
    ],
    "createdAt": "2023-10-01T12:00:00Z",
    "modifiedAt": "2023-10-01T12:00:00Z"
  },
  "status": 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

modelAnswerId
string
required

Unique identifier of the model answer

Body

multipart/form-data
userType
string

Numeric type representing the role of the user.

Example:

"1"

rubricId
string

Unique ID of the rubric to associate with the model answer sheet or you can refer this doc to get the rubricId

Example:

"2b973c83-2830-4712-87b7-64a8c0a99035"

isFinal
enum<string>

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

Available options:
true,
false
Example:

"true"

documents
file[]

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

Response

200
application/json
Model answer sheet updated successfully.
id
string

Unique identifier for the model answer sheet.

Example:

"3b27e0be-f9e8-4c4d-977b-b315bfb292ab"

documents
object[]

List of documents associated with the model answer sheet.

Example:
[]
rubric
object
status
integer

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

Example:

1