Discussions

Ask a Question
Back to All

Error "Invalid request body supplied" for recruiting/applications

Hi!

I'm trying to send an application to https://api.personio.de/v1/recruiting/applications.
But I always get "Invalid request body supplied". I tried removing / adding several attributes to the body, but nothing worked.
Sending "documents" works fine - only the "applications" do not work.

Any Idea?

Thanks
Wolfram

header:
"Accept: application/json",
"Content-Type: application/json",
"Authorization: Bearer xx",
"x-company-id: xx"

Body:
{
"job_position_id":"123",
"first_name":"Wo",
"last_name":"Ei",
"email":"[email protected]",
"recruiting_channel_id":123,
"phone":"test",
"salary_expectations":"test",
"available_from":"test",
"message":"test",
"gender":"male",
"location":"test",
"files":[
{
"uuid":"0d3e9635-a129-4aa4-a309-42b0d921ef02",
"original_filename":"/var/www/var/bundles/elementsdatalogger/privateFiles/elements-job-application/62c6f7054dc2b_dummy-woman.pdf",
"category":"cover-letter"
},
{
"uuid":"3c9b9bee-dc3e-4a77-9edd-e77a671b94fc",
"original_filename":"/var/www/var/bundles/elementsdatalogger/privateFiles/elements-job-application/62c6f70550cd0_dummy-man.jpeg",
"category":"cv"
}
]
}