Description
Enables you to reject an assessment order.
Request
POST https://api.smartrecruiters.com/v1/assessments/{assessmentOrderId}/reject
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 AssessmentOrder
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/reject
Example request body
{ "message": "Unfortunately we cannot complete this order", "author": { "firstName": "John", "lastName": "Mnemonic", "email": "john.mnemonic@smartrecruiters.com", "phone": "(123) 321 32 1231" } } |
Example response
{ "id": "511a3942300469a9c33819d1", "status": "REJECTED", "createDate": "2013-03-07T13:34:40.137+0000", "lastUpdateDate": "2013-03-07T13:34:40.137+0000", "requestor": { "firstName": "Rob", "lastName": "Kaman", "email": "rob.kaman@smartrecruiters.com", "phone": "(415) 111-2222" }, "candidate": { "id": "e63dfcab300260b2591f585126ede56627db4ef8", "firstName": "Mark", "lastName": "Hunt", "email": "mark.hunt@smartrecruiters.com", "phone": "(415) 111-2222", "addressLine": "409 North Magnolia Avenue, Orlando, FL 32801, United States" }, "job": { "id": "e63dfcab300260b2591f585126ede56627db4321", "name": "Senior Ruby Developer", "industry": { "id": "computer_software", "label": "Computer Software" }, "function": { "id": "engineering", "label": "Engineering" }, "experienceLevel": { "id": "mid_senior_level", "label": "senior" }, "location": { "country": "US", "region": "FL", "city": "Orlando" } }, "company": { "id": "511a3942300469a9c33811d1", "name": "Orlando Magic Inc." }, "offer": { "catalogId": "bbb-444-111", "name": "Senior Ruby Developer Skill Test" } } |