Create an application with an attachment
Send attachment
Before create an application please use attachment endpoint to send resume:
POST /api/applications/file
Content-Type: multipart/form-data; boundary=WebAppBoundary
X-API-Key: eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOj...
--WebAppBoundary
Content-Disposition: form-data; name="attachment"; filename="file.pdf"
< ../tests/files/98a6841d-b1bb-4951-a995-6826ddb3e877.pdf
--WebAppBoundary--
Save the result in order to use it for application:
{
"uniqname": "202001/2260_5e6e22c6922a00496fb8b6824215bc1f",
"mime": "application/pdf",
"filename": "CV-PaulDupont.pdf"
}
Create Application
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"
}
]
}
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": ""
}
}