/results – insert

Description

Enables you to submit a new assessment result.

Request

POST https://api.smartrecruiters.com/v1/assessments/{assessmentOrderId}/results

Path Parameters

name type description
assessmentOrderId string unique id of an assessment order

Query Parameters

n/a

Request Body

Instance of AssessmentResult

Response Body

Instance of AssessmentResult with generated unique id and create date

Example request

curl -i -H "X-SmartToken:abc123" -H "Content-Type: application/json;charset=utf-8" -d @body.json -X POST https://api.smartrecruiters.com/v1/assessments/511a3942300469a9c33819d8/results

Example request body

1
2
3
4
5
6
7
8
9
10
11
12
{
    "title": "Enterprise Java Beans test results",
    "description": "Mr. Jet Li demonstrated outstanding Java Skills and we believe he will be a great Senior Java Developer",
    "passed": true,
    "score": "98/100",
    "author": {
        "firstName": "John",
        "lastName": "Mnemonic",
        "email": "john.mnemonic@smartrecruiters.com",
        "phone": "(123) 321 32 1231"
    }
}

Example response

1
2
3
4
5
6
7
8
9
10
11
12
13
14
{
    "id": "211a3942300469a9c33819d1",
    "createDate": "2013-03-08T09:22:01.605+0000",
    "title": "Enterprise Java Beans test results",
    "description": "Mr. Jet Li demonstrated outstanding Java Skills and we believe he will be a great Senior Java Developer",
    "passed": true,
    "score": "98/100",
    "author": {
        "firstName": "John",
        "lastName": "Mnemonic",
        "email": "john.mnemonic@smartrecruiters.com",
        "phone": "(123) 321 32 1231"
    }
}