Create an application with form data
Retrieve form
GET http://api/api/form/fr/mLA.json
Content-Type: application/json
mLA
== the agency (cabinet) id encoded.
OR
GET http://api/api/form/fr
Content-Type: application/json
without any encoded id
- Response example
[
{
"id": "1328_0_3778_0_s",
"type": "select",
"question": "Mobilité professionnelle",
"text": "",
"options": [
{
"value": "1328_0_25815_3
...
Create Application with form data
POST /api/applications
Content-Type: application/json
X-API-Key: eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOj...
{
"gender": "M.",
"firstname": "Albert",
"lastname": "Lunel",
"address": "Rue des fermes",
"zipcode": "05200",
"city": "Embrun",
"country": "FR",
"email": "[email protected]",
"tel": "0102030405",
"comments": "Commentaire contenu",
"reference_offer": "resplogvtepriv"
"attachments": [
{
"filename": "CV.pdf",
"mime": "application/pdf",
"uniqname": "201912/936e1f69-d63d-478c-bf40-dc948af2091e.pdf"
}
],
"form": {
"answers": {
"1329_0_3780_0_s": "1329_0_25923_0",
"4339_0_12065_1_s": "4339_0_94039_0"
}
}
}
Result:
{
"action": {
"id": 33921485,
"comment": "Commentaire contenu",
"created_at": "2020-01-28T12:17:02+01:00"
},
"consultant": {
"id": 12,
"name": "Consultant Name"
},
"candidate": {
"id": 8799747,
"name": "M. Lunel Albert"
},
"media": {
"id": 44,
"name": "SITE INTERNET ENTREPRISE",
"reference": "STAGECOFEV19/site/"
},
"offer": {
"id": 317567,
"created_at": "2019-02-05T00:00:00+01:00",
"comments": ""
}
}
Form description:
id
: question idtype
: question type: available values:texte
,select
andmultiselect
question
: question itself as texttext
: any detailsoptions
: in case ofselect
andmultiselect
,options
contains all avalaible values withid
and text (value
)required
: is the question is required (`true') or not (empty text)