Discussions

Ask a Question
Back to All

POST /v1/recruiting/applications/documents responds with 400

Hi, when I try to perfom a POST document request the endpoint answers with

`{
    "error": {
        "reason": "Invalid multipart request body and/or headers supplied."
    }
}

This status code/message is not documented and happens also in the API Docs using the "TRY" Button.

The Request looks like this

`curl --location 'https://api.personio.de/v1/recruiting/applications/documents' \
--header 'X-Company-ID: ****' \
--header 'Content-Type: multipart/form-data' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer ********' \
--data '@/C:/Users/*****/test-pdf.pdf'

Can you help?