Assignment Answer


Submit user assignment answer

QueryArguments

documentID integer The course document id.
enrollmentID integer The user enrollment id.
userAnswer integer The user answer.
questionID integer The question id.
Note: if question single_multiple = 2 userAnser must be array.
Definition:
 POST https://app.alphalearn.com/webapi/v1/user-assignment-answer 
Example Request:
 curl -X POST \
  https://app.alphalearn.com/webapi/v1/user-assignment-answer \
  -H 'authorization: Bearer {Authorization Token}' \
  -F {
      enrollmentID={enrollmentID},
      questionID={questionID},
      documentID={documentID},
      userAnswer={userAnswer}
    }
Example Response:
200 OK
{
    "success": true,
    "data": {
        "answer": "integer",
        "correct": "boolean"
    }
}