/comments – insert

Description

Adding new comment to an assessment order.

Request

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

Path Parameters

name type description
assessmentOrderId string unique id of an assessment order

Query Parameters

n/a

Request Body

Instance of AssessmentComment

Response Body

Instance of AssessmentComment 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/comments

Example request body

1
2
3
4
5
6
7
8
9
{
    "message": "Since candidate was not responding for 3 days we will have a slight delay",
    "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
{
    "id": "211a3942300469a9c33819d1",
    "createDate": "2013-03-08T09:22:01.605+0000",
    "message": "Since candidate was not responding for 3 days we will have a slight delay",
    "author": {
        "firstName": "John",
        "lastName": "Mnemonic",
        "email": "john.mnemonic@smartrecruiters.com",
        "phone": "(123) 321 32 1231"
    }
}