Unassign a participant from an exam

POST /exam-participants/unassign

Removes or cancels a participant's assignment from a specific exam, as long as the participant has not started the exam.

application/json

Body Required

JSON object containing the participant ID and exam ID for the unassignment process.

  • participant_id integer Required

    Unique ID of the participant to be assigned to or unassigned from an exam.

  • exam_id integer Required

    Unique ID of the exam related to the assignment or unassignment operation.

Responses

  • 200

    Participant's assignment from the exam successfully canceled.

  • 400

    Failed to unassign: Participant is not registered for this exam or participant has already started the exam.

  • 401

    Authorization failed. Ensure the X-Client-Key sent is valid and active.

  • 403

    Invalid or inactive client. The API key may be incorrect, expired, or your account does not have permission.

  • 404

    Participant or Exam data with the given ID was not found.

  • 422

    Validation error occurred on the submitted participant ID or exam ID.

  • 500

    An internal server error occurred. Please try again shortly or contact support.

POST /exam-participants/unassign
curl \
 --request POST 'https://app.indolat.com/api/v1/exam-participants/unassign' \
 --header "X-Client-Key: $API_KEY" \
 --header "Content-Type: application/json" \
 --data '{"participant_id":101,"exam_id":202}'
Request examples
{
  "participant_id": 101,
  "exam_id": 202
}