Submit assessment results

🛑

Assessment API Sunset

This API has been deprecated since September 4, 2023. The sunset date is June 10, 2024. If you are an assessment provider or looking to build an assessment integration with SmartRecruiters, please consider using the new Assessment API (2021).

In order to submit an in-line assessment result you must send a POST request to the 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
     https://api.smartrecruiters.com/v1/inline-assessments/results/776f584f-1fa6-44f6-8e94-d9daacc3dc3d

body.json:

{
   "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": "https://vendordomain.com/results/resultIdentifier",
   "author": {
      "firstName": "John",
      "lastName": "Mnemonic",
      "email": "[email protected]",
      "phone": "(123) 321 32 1231"
   }
}