{"_id":"5a746d581a0d3400328cda62","project":"54ee19c23749bf0d00c76515","version":{"_id":"5a60f64d792a330012d72140","project":"54ee19c23749bf0d00c76515","__v":2,"createdAt":"2018-01-18T19:32:29.915Z","releaseDate":"2018-01-18T19:32:29.915Z","categories":["5a60f64d792a330012d72141","5a60f64d792a330012d72142","5a60f64d792a330012d72143","5a60f64d792a330012d72144","5a60f64d792a330012d72145","5a60f64d792a330012d72146","5a60f64d792a330012d72147","5a660cc7dc0f1c001c2b5568"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"3.0.0","version":"3"},"category":{"_id":"5a60f64d792a330012d72146","version":"5a60f64d792a330012d72140","project":"54ee19c23749bf0d00c76515","__v":0,"sync":{"url":"","isSync":false},"reference":true,"createdAt":"2015-02-25T20:55:14.360Z","from_sync":false,"order":6,"slug":"candidate-endpoints","title":"Candidate Endpoints"},"user":"575f003663430e0e008a8704","githubsync":"","__v":5,"parentDoc":null,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2018-02-02T13:53:28.910Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"examples":{"codes":[{"code":"POST /public/api/v3/company/000000000000/position/000000000000/candidate/questionnaire/000000000000 HTTP/1.1\nHost: breezy.hr\nAuthorization: 00000000-0000-0000-0000-000000000000\nContent-Type: application/json\n\n{\n\t\"responses\": [\n\t\t{\n\t\t\t\"_id\": \"000000000000\",  //question_id\n\t\t\t\"response\": \"Option Value\"  // syntax for multiplechoice/dropdown type questions\n\t\t},\n\t\t{\n\t\t\t\"_id\": \"000000000000\", //question_id\n\t\t\t\"response\": \"This is the text response\" //syntax for paragraph/text type questions\n\t\t},\n\t\t{\n\t\t\t\"_id\": \"000000000000\", //question_id\n\t\t\t\"responses\": [\"Option Value 1\", \"Option Value 2\"] //syntax for checkboxes type questions - note the key is responses, not response\n\t\t}\n\t\t\n\t]\n}","language":"http"},{"code":"curl -H \"Content-Type: application/json\" -H \"Authorization: 00000000-0000-0000-0000-000000000000\" -X POST -d '{\"responses\": [{\"_id\": \"000000000000\",\"response\": \"Option Value\"},{\"_id\": \"000000000000\",\"response\": \"This is the text response\"},{\"_id\": \"000000000000\", \"responses\": [\"Option Value 1\", \"Option Value 2\"]\t}]}' https://breezy.hr/public/api/v3/company/000000000000/position/000000000000/candidate/000000000000/questionnaire/000000000000\n\n","language":"curl"}]},"settings":"","results":{"codes":[{"status":204,"language":"json","code":"","name":""},{"status":400,"language":"json","code":"{\n    \"error\": {\n        \"type\": \"missingAccessToken\",\n        \"message\": \"access token is null or empty\"\n    }\n}","name":"Missing Access Token"},{"code":"{\n    \"error\": {\n        \"type\": \"invalidAccessToken\",\n        \"message\": \"access token is invalid\"\n    }\n}","language":"json","status":401},{"code":"{\n    \"error\": {\n        \"type\": \"updateCandidateQuestionnaireUnkownError\",\n        \"message\": \"there was an unknown error responding to canididate questionnaire.\"\n    }\n}","language":"json","status":500}]},"method":"post","auth":"required","params":[{"_id":"57a8b1e0cdeea20e001d2a3f","ref":"","in":"path","required":true,"desc":"","default":"","type":"string","name":"company_id"},{"_id":"57a8b1e0cdeea20e001d2a3e","ref":"","in":"path","required":true,"desc":"","default":"","type":"string","name":"position_id"},{"_id":"57a8b1e0cdeea20e001d2a3d","ref":"","in":"path","required":true,"desc":"","default":"","type":"string","name":"candidate_id"},{"_id":"5a746d581a0d3400328cda63","ref":"","in":"path","required":true,"desc":"","default":"","type":"string","name":"candidate_questionnaire_id"},{"_id":"5a746f9458febb0061800de0","ref":"","in":"body","required":true,"desc":"","default":"","type":"array_object","name":"responses"}],"url":"/v:version/company/:company_id/position/:position_id/candidate/:candidate_id/questionnaire/:candidate_questionnaire_id"},"isReference":true,"order":11,"body":"","excerpt":"Save candidate responses to a questionnaire","slug":"company-position-candidate-questionnaire-update","type":"endpoint","title":"./candidate/:id/questionnaire/:id"}

post./candidate/:id/questionnaire/:id

Save candidate responses to a questionnaire

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Path Params

company_id:
required
string
position_id:
required
string
candidate_id:
required
string
candidate_questionnaire_id:
required
string

Body Params

responses:
required
array of objects

Examples


User Information

Try It Out

post
{{ tryResults.results }}
Method{{ tryResults.method }}
Request Headers
{{ tryResults.requestHeaders }}
URL{{ tryResults.url }}
Request Data
{{ tryResults.data }}
Status
Response Headers
{{ tryResults.responseHeaders }}