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
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"
}
}
Updated 9 months ago