get/offer/{offerId}/question
Returns the prescreening questions of an offer where the id matches with the {offerId} in the URL.
Request
Resource URL
https://api.infojobs.net/api/1/offer/{offerId}/question
Security
- User Role: public
- Scope: none
Parameters
Name | Description |
---|---|
offerId String Required |
Offer identifier. Example values: 1ea3d2bedb4940bc83aad93726cb16 Maximum length:100 |
Response
Response fields
Name | Description |
---|---|
openQuestions List(OfferOpenQuestion) |
The list of questions with open answers. |
killerQuestions List(OfferKillerQuestion) |
The list of questions with predefined answers. |
Name | Description |
---|---|
id Long |
The question unique identifier. |
question String |
The question. IMPORTANT: Please note in compliance with JSON format you must not send carriage returns within the value field, but replace them with "\n" instead. Maximum length:500 |
answer String |
The answer filled by the user. Always empty in this operation. IMPORTANT: Please note in compliance with JSON format you must not send carriage returns within the value field, but replace them with "\n" instead. Maximum length:1500 |
Name | Description |
---|---|
id Long |
The killer question unique identifier. |
question String |
The question. IMPORTANT: Please note in compliance with JSON format you must not send carriage returns within the value field, but replace them with "\n" instead. Maximum length:500 |
answers List(OfferAnswer) |
A list of possible answers. |
Name | Description |
---|---|
id Long |
The answer unique identifier. |
answer String |
The answer. IMPORTANT: Please note in compliance with JSON format you must not send carriage returns within the value field, but replace them with "\n" instead. Maximum length:500 |
Error codes
Code | Description |
---|---|
313 |
The offer {offerId} is not a valid parameter |
Examples
This example gets the prescreening questions of an offer where the id matches with the {offerId}.
Request
GET https://api.infojobs.net/api/1/offer/{offerId}/question
Response
{ "openQuestions": [ { "id": 2391697190, "question": "¿Vives en Barcelona?" } ], "killerQuestions": [ { "id": 1753105792, "question": "¿Cuántos años de experiencia tienes en un cargo similar al ofertado?", "answers": [ { "id": 1753105794, "answer": "Más de 5 años" }, { "id": 1753105796, "answer": "Más de 3 años" }, { "id": 1753105798, "answer": "Más de 1 año" }, { "id": 1753105800, "answer": "Menos de 1 año" }, { "id": 1753105802, "answer": "No he trabajado nunca en un cargo similar" } ] } ] }