Answers
Application answers can be created as part of the Application payload or later.
Pushing answers after the application is created can be useful when the information is not available at the time of submission, or when the answers include file uploads and the partner prefers to use multipart/form-data, which, due to the nature of the nested object, does not support file answers.
Create
POST /applications/<application-id>/answers
Query String Parameters
None
Request Payload
Answers Object - application/json
[
{
"question_id": 1,
"text": [
"https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf"
],
}
]question_id | ID of the question |
|---|---|
text | List of answers to the question. Some questions support multiple choices. If the answer is a file, a URL must be provided in text list. Jobylon will download the file. |
Answers Object - multipart/form-data
--form question_id=1 \
--form 'text=Stockholm;Gothenburg' --form question_id=2 \
--form 'file=@/home/jobylon/document.pdf'question_id | ID of the question |
|---|---|
text | Answers to the question. Some questions support multiple choices. A semicolon-separated list of answers is expected in that case. Cannot be used together with file. |
file | Answer for questions that require a file as the answer. Cannot be used together with text. |
Response
Name | Type | Description |
|---|---|---|
question_id | integer | Question ID |
text | string | Question answer |
Exceptions
Status | Description |
|---|---|
400 | - Bad request, such as api credentails doesn't have access to an applicant. - Answer already exists for this question. - Invalid choice. |
403 | Permission denied |
405 | Method not supported |