Discussions

Ask a Question
Back to All

401 on uploadin documents for applicaiton

Hello

I am trying to test upload of application documents here https://developer.personio.de/v1.0/reference/post_v1-recruiting-applications-documents

I have input my token and company ID, but continue getting 401. I have also assigned all possible access right categories to my account.

curl --request POST
--url https://api.personio.de/v1/recruiting/applications/documents
--header 'X-Company-ID: novakjanja'
--header 'accept: application/json'
--header 'authorization: Bearer [token here]'
--header 'content-type: multipart/form-data'
--form file='@personio_test.pdf'

Is there anything else I am missing / should configure? I have removed the actual token from the above request.