PATCH
/
evaluation-platform
/
v1
/
exam
/
{examId}
/
update
curl --request PATCH \
  --url https://api-staging.crazygoldfish.com/evaluation-platform/v1/exam/{examId}/update/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '[
  {
    "entity": "modelAnswer",
    "id": "a17cd91d-55d3-46bb-a544-9f38ab2e027f",
    "text": "sdsdf",
    "stepMarking": [
      {
        "marksplit": 1,
        "step_wise_answer": "b"
      }
    ]
  },
  {
    "entity": "question",
    "id": "2f35d316-ed4e-430f-90e1-28ac133219f6",
    "text": "Titles adopted by the ruler-Devanampiya, often translated as '\''beloved of the gods'\'' and Piyadassi, or '\''pleasant to behold'\''. A. King Harshavardhan B. King Ashoka C. King Samudragupta D. King Chandragupta"
  }
]'
{
  "status": "Success",
  "message": "Data updated successfully"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

examId
string
required

Body

application/json · object[]
Request payload containing a list of entities, including model answers and questions.
entity
string
required

Type of entity (e.g., modelAnswer or question).

Example:

"modelAnswer"

id
string
required

Unique identifier for the entity.

Example:

"a17cd91d-55d3-46bb-a544-9f38ab2e027f"

text
string
required

The textual content of the entity.

Example:

"sdsdf"

stepMarking
object[]

List of step-wise marking details (only applicable to modelAnswer entities).

Response

200
application/json
Successful operation response indicating the data was updated successfully.
status
string

Indicates the status of the operation.

Example:

"Success"

message
string

Provides additional details about the operation result.

Example:

"Data updated successfully"