Submit assessment results

In order to submit in-line assessment result you must send a POST request to URL provided in “assessmentResultUrl” field of InlineAssessmentOrderRequest object. You have to provide an API token in headers. The request must contain AssessmentResult object. You can find more information on AssessmentResult object here.

Note: Adding attachments to a result with DOCUMENT type is not supported in In-line Assessment API.

Here is an example POST request for submitting a result:

curl -i
     -H "X-SmartToken:abc123"
     -H "Content-Type: application/json;charset=utf-8"
     -d @body.json
     -X POST


   "title": "Object Oriented Programming test results",
   "description": "Mr. Jet Li demonstrated full proficiency in Object Oriented programming",
   "passed": true,
   "score": "95/100",
   "resultType": "URL",
   "result": "",
   "author": {
      "firstName": "John",
      "lastName": "Mnemonic",
      "email": "[email protected]",
      "phone": "(123) 321 32 1231"